From 8df281cce6822b534ad43edc9efb18a5292e8e60 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 --- app/ui.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/ui.js b/app/ui.js index 1c6248ed..8be8afb7 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"); },