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
parent c4633ab333
commit a040c402ed
1 changed files with 1 additions and 0 deletions

View File

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