From 02b9b268ff163cbcbf8804796c0ad8cbb52a80dc Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Fri, 1 May 2020 14:38:09 +0200 Subject: [PATCH] Don't fade the control bar if it has focus Fixes github issue #1369 --- kasmweb/app/ui.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kasmweb/app/ui.js b/kasmweb/app/ui.js index cd04442..7105c2f 100644 --- a/kasmweb/app/ui.js +++ b/kasmweb/app/ui.js @@ -585,6 +585,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"); },