summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Tanskanen <aleta@cendio.com>2020-03-12 13:17:51 +0100
committerAlex Tanskanen <aleta@cendio.com>2020-03-12 13:17:51 +0100
commita040c402ed64fbbee67e69dc4787e6ea54a8a88c (patch)
tree47f64214cc1dcd615e19c0a5803126d5b881c3e8
parentc4633ab33377f690c6f5efcee7ede858a6c197db (diff)
downloadnovnc-a040c402ed64fbbee67e69dc4787e6ea54a8a88c.tar.gz
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.
-rw-r--r--app/ui.js1
1 files changed, 1 insertions, 0 deletions
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() {