]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Fix focus problem after closing the toolbar
authorAlex Tanskanen <aleta@cendio.com>
Thu, 12 Mar 2020 12:17:51 +0000 (13:17 +0100)
committerAlex Tanskanen <aleta@cendio.com>
Thu, 12 Mar 2020 12:17:51 +0000 (13:17 +0100)
Closing the toolbar would make the focus remain on the toolbar and
not in the session. The only way to switch focus was to click in the
session. This commit will automatically switch back focus to the session
after closing the toolbar.

app/ui.js

index d118c84fc591762133be0f27208e9194b1576002..1c6248ed87c84e806909fafc5e334e15bc754ad9 100644 (file)
--- a/app/ui.js
+++ b/app/ui.js
@@ -535,6 +535,7 @@ const UI = {
         UI.closeAllPanels();
         document.getElementById('noVNC_control_bar')
             .classList.remove("noVNC_open");
+        UI.rfb.focus();
     },
 
     toggleControlbar() {