From f3e2fc58ec7a72f01adbceade7e418635b5e858e Mon Sep 17 00:00:00 2001 From: Vlastimil Sadilek Date: Fri, 4 May 2018 14:23:02 +0200 Subject: [PATCH 1/2] Fix: undefined err, undefined Exception --- core/base64.js | 2 +- core/websock.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/base64.js b/core/base64.js index 5182c295..48e28c31 100644 --- a/core/base64.js +++ b/core/base64.js @@ -100,7 +100,7 @@ export default { // If there are any bits left, the base64 string was corrupted if (leftbits) { - err = new Error('Corrupted base64 string'); + var err = new Error('Corrupted base64 string'); err.name = 'Base64-Error'; throw err; } diff --git a/core/websock.js b/core/websock.js index a4959152..f9c1256c 100644 --- a/core/websock.js +++ b/core/websock.js @@ -267,7 +267,7 @@ Websock.prototype = { if (this._rQbufferSize > MAX_RQ_GROW_SIZE) { this._rQbufferSize = MAX_RQ_GROW_SIZE; if (this._rQbufferSize - this._rQlen - this._rQi < min_fit) { - throw new Exception("Receive Queue buffer exceeded " + MAX_RQ_GROW_SIZE + " bytes, and the new message could not fit"); + throw new Error("Receive Queue buffer exceeded " + MAX_RQ_GROW_SIZE + " bytes, and the new message could not fit"); } } From 5858f472e3bf012cbffa5fbe449a2a237755da0b Mon Sep 17 00:00:00 2001 From: Vlastimil Sadilek Date: Fri, 4 May 2018 14:23:45 +0200 Subject: [PATCH 2/2] Fix: IE11 Numpad5 compatibility when numlock off This fix Numpad5 in Internet Explorer 11 if numlock state of host differs with numlock state of VNC console. --- core/input/domkeytable.js | 2 +- core/input/vkeys.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/input/domkeytable.js b/core/input/domkeytable.js index 7103bba7..df85a635 100644 --- a/core/input/domkeytable.js +++ b/core/input/domkeytable.js @@ -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); diff --git a/core/input/vkeys.js b/core/input/vkeys.js index dc784ffd..d0f6d8e1 100644 --- a/core/input/vkeys.js +++ b/core/input/vkeys.js @@ -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',