diff options
author | Samuel Mannehed <samuel@cendio.se> | 2020-05-01 14:38:09 +0200 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2020-05-01 14:38:09 +0200 |
commit | 8df281cce6822b534ad43edc9efb18a5292e8e60 (patch) | |
tree | 2f0fea8d736988bb4e93f8f7b395f8abca3aa7d7 | |
parent | c12e5b2b544aff6f662c7f61f82ce40d132e14df (diff) | |
download | novnc-8df281cce6822b534ad43edc9efb18a5292e8e60.tar.gz |
Don't fade the control bar if it has focus
Fixes github issue #1369
-rw-r--r-- | app/ui.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"); }, |