From 20d467cc506028dffaf5df875a4ea6cb46bfd58c Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 7 Nov 2012 14:51:45 +0900 Subject: [PATCH] implement "send backslash" button for vnc.html --- images/backslash.png | Bin 0 -> 279 bytes include/ui.js | 8 ++++++++ vnc.html | 3 +++ 3 files changed, 11 insertions(+) create mode 100644 images/backslash.png diff --git a/images/backslash.png b/images/backslash.png new file mode 100644 index 0000000000000000000000000000000000000000..cc55c401153965dcfdb17bde87393e00178a0928 GIT binary patch literal 279 zcmeAS@N?(olHy`uVBq!ia0vp^k|4~%1|*NXY)uAIY)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPaH#@5q+u=7?Rsn^Uc)B=-cpQH_c_U}DgM{1uh;$C= z?@t12Qe{U zV0t=h_oSKc^*!A^)fK)QoNVBdIJ@Fg)h3x2Kh_m*G`x^v{O(xVjGUNBX0xq7u>IQV zdH%2Y-o{xownVd>WIE@1Dfp6Okk-pLsl|Ucu1vmEKmE($N#7bJG#JbkH1fJ@8Gcnb VPVo?xsRO!~!PC{xWt~$(697&yYQz8l literal 0 HcmV?d00001 diff --git a/include/ui.js b/include/ui.js index 25bf162b..c287ee9c 100644 --- a/include/ui.js +++ b/include/ui.js @@ -143,6 +143,7 @@ addMouseHandlers: function() { //$D("keyboardinput").onkeydown = function (event) { onKeyDown(event); }; $D("keyboardinput").onblur = UI.keyInputBlur; + $D("sendBackslashButton").onclick = UI.sendBackslash; $D("sendCtrlAltDelButton").onclick = UI.sendCtrlAltDel; $D("clipboardButton").onclick = UI.toggleClipboardPanel; $D("settingsButton").onclick = UI.toggleSettingsPanel; @@ -391,6 +392,11 @@ setPassword: function() { return false; }, +sendBackslash: function() { + UI.rfb.sendKey(0x5C); + return false; +}, + sendCtrlAltDel: function() { UI.rfb.sendCtrlAltDel(); }, @@ -489,11 +495,13 @@ updateVisualState: function() { UI.setMouseButton(1); $D('clipboardButton').style.display = "inline"; $D('showKeyboard').style.display = "inline"; + $D('sendBackslashButton').style.display = "inline"; $D('sendCtrlAltDelButton').style.display = "inline"; } else { UI.setMouseButton(); $D('clipboardButton').style.display = "none"; $D('showKeyboard').style.display = "none"; + $D('sendBackslashButton').style.display = "none"; $D('sendCtrlAltDelButton').style.display = "none"; } // State change disables viewport dragging. diff --git a/vnc.html b/vnc.html index 9d699c9e..dcb6c9fe 100644 --- a/vnc.html +++ b/vnc.html @@ -70,6 +70,9 @@
+