From ca25d2ae26ffb22a2b7f9a4c56393165ca70052b Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 26 Aug 2016 13:34:01 +0200 Subject: [PATCH] Move Ctrl+Alt+Del to extra keys menu The extra keys menu is now present for all devices, so avoid clutter by moving the Ctrl+Alt+Del button there as well. --- app/styles/base.css | 5 ----- app/ui.js | 5 +++-- vnc.html | 8 +++----- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/app/styles/base.css b/app/styles/base.css index 8fbcb282..b87c52e8 100644 --- a/app/styles/base.css +++ b/app/styles/base.css @@ -316,11 +316,6 @@ input[type=button]:active, select:active { display: none; } -/* Send Ctrl+Alt+Delete */ -:root:not(.noVNC_connected) #noVNC_send_ctrl_alt_del_button { - display: none; -} - #noVNC_modifiers { background-color: rgb(92, 92, 92); border: none; diff --git a/app/ui.js b/app/ui.js index 0ccffadc..f78b74c5 100644 --- a/app/ui.js +++ b/app/ui.js @@ -210,8 +210,6 @@ var UI; document.getElementById("noVNC_view_drag_button") .addEventListener('click', UI.toggleViewDrag); - document.getElementById("noVNC_send_ctrl_alt_del_button") - .addEventListener('click', UI.sendCtrlAltDel); document.getElementById("noVNC_control_bar_handle") .addEventListener('mousedown', UI.controlbarHandleMouseDown); @@ -277,6 +275,8 @@ var UI; .addEventListener('click', UI.sendTab); document.getElementById("noVNC_send_esc_button") .addEventListener('click', UI.sendEsc); + document.getElementById("noVNC_send_ctrl_alt_del_button") + .addEventListener('click', UI.sendCtrlAltDel); }, addXvpHandlers: function() { @@ -1462,6 +1462,7 @@ var UI; }, sendCtrlAltDel: function() { + UI.keepKeyboard(); UI.rfb.sendCtrlAltDel(); }, diff --git a/vnc.html b/vnc.html index b7074237..8a68ba6f 100644 --- a/vnc.html +++ b/vnc.html @@ -102,15 +102,13 @@ + - - -