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.
This commit is contained in:
Alex Tanskanen 2020-03-12 13:17:51 +01:00 committed by Lauri Kasanen
parent 64dfb8d1d6
commit 95af51e28d

View File

@ -602,6 +602,7 @@ const UI = {
UI.closeAllPanels();
document.getElementById('noVNC_control_bar')
.classList.remove("noVNC_open");
UI.rfb.focus();
},
toggleControlbar() {