@novnc/novnc
Advanced tools
Comparing version 1.5.0-g7fcf9dc to 1.5.0-g96c76f7
@@ -206,3 +206,3 @@ "use strict"; | ||
this._altGrArmed = true; | ||
this._altGrTimeout = setTimeout(this._handleAltGrTimeout.bind(this), 100); | ||
this._altGrTimeout = setTimeout(this._interruptAltGrSequence.bind(this), 100); | ||
this._altGrCtrlTime = e.timeStamp; | ||
@@ -221,7 +221,3 @@ return; | ||
// abort that detection | ||
if (this._altGrArmed) { | ||
this._altGrArmed = false; | ||
clearTimeout(this._altGrTimeout); | ||
this._sendKeyEvent(_keysym["default"].XK_Control_L, "ControlLeft", true); | ||
} | ||
this._interruptAltGrSequence(); | ||
@@ -249,7 +245,9 @@ // See comment in _handleKeyDown() | ||
}, { | ||
key: "_handleAltGrTimeout", | ||
value: function _handleAltGrTimeout() { | ||
this._altGrArmed = false; | ||
clearTimeout(this._altGrTimeout); | ||
this._sendKeyEvent(_keysym["default"].XK_Control_L, "ControlLeft", true); | ||
key: "_interruptAltGrSequence", | ||
value: function _interruptAltGrSequence() { | ||
if (this._altGrArmed) { | ||
this._altGrArmed = false; | ||
clearTimeout(this._altGrTimeout); | ||
this._sendKeyEvent(_keysym["default"].XK_Control_L, "ControlLeft", true); | ||
} | ||
} | ||
@@ -260,2 +258,5 @@ }, { | ||
Log.Debug(">> Keyboard.allKeysUp"); | ||
// Prevent control key being processed after losing focus. | ||
this._interruptAltGrSequence(); | ||
for (var code in this._keyDownList) { | ||
@@ -262,0 +263,0 @@ this._sendKeyEvent(this._keyDownList[code], code, false); |
{ | ||
"name": "@novnc/novnc", | ||
"version": "1.5.0-g7fcf9dc", | ||
"version": "1.5.0-g96c76f7", | ||
"description": "An HTML5 VNC client", | ||
@@ -58,3 +58,2 @@ "browser": "lib/rfb", | ||
"karma-script-launcher": "latest", | ||
"karma-sinon-chai": "latest", | ||
"mocha": "latest", | ||
@@ -61,0 +60,0 @@ "node-getopt": "latest", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24
735196