mirror of
https://github.com/novnc/noVNC.git
synced 2026-06-09 22:04:38 +00:00
Make sure control bar stays visible on Tab
Avoid the deprecated keypress event in favour of the keydown event. It has the benefit of triggering for all keys, not just those that produce symbols.
This commit is contained in:
@@ -243,12 +243,12 @@ var UI = {
|
||||
document.getElementById("noVNC_control_bar")
|
||||
.addEventListener('mousedown', UI.activateControlbar);
|
||||
document.getElementById("noVNC_control_bar")
|
||||
.addEventListener('keypress', UI.activateControlbar);
|
||||
.addEventListener('keydown', UI.activateControlbar);
|
||||
|
||||
document.getElementById("noVNC_control_bar")
|
||||
.addEventListener('mousedown', UI.keepControlbar);
|
||||
document.getElementById("noVNC_control_bar")
|
||||
.addEventListener('keypress', UI.keepControlbar);
|
||||
.addEventListener('keydown', UI.keepControlbar);
|
||||
|
||||
document.getElementById("noVNC_view_drag_button")
|
||||
.addEventListener('click', UI.toggleViewDrag);
|
||||
|
||||
Reference in New Issue
Block a user