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.
pull/36/head
Alex Tanskanen 5 years ago committed by Lauri Kasanen
parent 64dfb8d1d6
commit 95af51e28d

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

Loading…
Cancel
Save