summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/ui.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/ui.js b/app/ui.js
index 1c6248e..8be8afb 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -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");
},