]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Fix: IE11 Numpad5 compatibility when numlock off
authorVlastimil Sadilek <vsadilek@linuxbox.cz>
Fri, 4 May 2018 12:23:45 +0000 (14:23 +0200)
committerVlastimil Sadilek <vsadilek@linuxbox.cz>
Wed, 16 May 2018 11:52:56 +0000 (13:52 +0200)
This fix Numpad5 in Internet Explorer 11 if numlock state of host differs with numlock state of
VNC console.

core/input/domkeytable.js
core/input/vkeys.js

index 7103bba7a79ed016f29d26fe098dfe848f7e20c4..df85a63553b0c537fc32a7b02eff249b3a942ee9 100644 (file)
@@ -75,7 +75,7 @@ addNumpad("PageUp", KeyTable.XK_Prior, KeyTable.XK_KP_Prior);
 // 2.5. Editing Keys
 
 addStandard("Backspace", KeyTable.XK_BackSpace);
-addStandard("Clear", KeyTable.XK_Clear);
+addNumpad("Clear", KeyTable.XK_Clear, KeyTable.XK_KP_Begin);
 addStandard("Copy", KeyTable.XF86XK_Copy);
 // - CrSel
 addStandard("Cut", KeyTable.XF86XK_Cut);
index dc784ffde1dbae0d596eed085e08e1a69a88e25c..d0f6d8e140dde9cc44e7a6f5ffede41476f73915 100644 (file)
@@ -58,6 +58,7 @@ export default {
     0x63: 'Numpad3',
     0x64: 'Numpad4',
     0x65: 'Numpad5',
+    0x0c: 'Numpad5', // IE11 sends evt.keyCode: 12 when numlock is off
     0x66: 'Numpad6',
     0x67: 'Numpad7',
     0x68: 'Numpad8',