From 6ecbbb3c82dcc125eea3bf1a99c7b4b5bb05172a Mon Sep 17 00:00:00 2001 From: Baobhan Sith <80159437+Heavrnl@users.noreply.github.com> Date: Wed, 7 May 2025 22:26:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dvnc=E9=94=AE=E7=9B=98?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=97=A0=E5=93=8D=E5=BA=94=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/VncModal.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/frontend/src/components/VncModal.vue b/packages/frontend/src/components/VncModal.vue index 17cd422..d208835 100644 --- a/packages/frontend/src/components/VncModal.vue +++ b/packages/frontend/src/components/VncModal.vue @@ -149,6 +149,10 @@ const setupInputListeners = () => { if (activeElement && (activeElement.id === 'modal-width' || activeElement.id === 'modal-height')) { activeElement.blur(); } + // Ensure the VNC display element gets focus when clicked + if (displayEl && typeof displayEl.focus === 'function') { + displayEl.focus(); + } }; displayEl.addEventListener('click', handleVncDisplayClick);