Don't fade the control bar if it has focus

Fixes github issue #1369
This commit is contained in:
Samuel Mannehed 2020-05-01 14:38:09 +02:00
parent c12e5b2b54
commit 8df281cce6
1 changed files with 7 additions and 0 deletions

View File

@ -518,6 +518,13 @@ const UI = {
},
idleControlbar() {
// Don't fade if a child of the control bar has focus
if (document.getElementById('noVNC_control_bar')
.contains(document.activeElement) && document.hasFocus()) {
UI.activateControlbar();
return;
}
document.getElementById('noVNC_control_bar_anchor')
.classList.add("noVNC_idle");
},