From a040c402ed64fbbee67e69dc4787e6ea54a8a88c 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. --- app/ui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/ui.js b/app/ui.js index d118c84..1c6248e 100644 --- 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() { -- 2.39.2