From 95af51e28df791b2d21305d7dd9d0163f513a669 Mon Sep 17 00:00:00 2001 From: Alex Tanskanen Date: Thu, 12 Mar 2020 13:17:51 +0100 Subject: [PATCH] Fix focus problem after closing the toolbar 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. --- kasmweb/app/ui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/kasmweb/app/ui.js b/kasmweb/app/ui.js index 07beca5..cd04442 100644 --- a/kasmweb/app/ui.js +++ b/kasmweb/app/ui.js @@ -602,6 +602,7 @@ const UI = { UI.closeAllPanels(); document.getElementById('noVNC_control_bar') .classList.remove("noVNC_open"); + UI.rfb.focus(); }, toggleControlbar() {