mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Merge pull request #258 from glyptodon/defaultprevented-error
GUAC-1322: Fix Guacamole.Keyboard keyup fallback
This commit is contained in:
@@ -933,13 +933,18 @@ Guacamole.Keyboard = function(element) {
|
|||||||
// Keyup event
|
// Keyup event
|
||||||
else if (first instanceof KeyupEvent) {
|
else if (first instanceof KeyupEvent) {
|
||||||
|
|
||||||
|
// Release specific key if known
|
||||||
var keysym = first.keysym;
|
var keysym = first.keysym;
|
||||||
if (keysym) {
|
if (keysym) {
|
||||||
guac_keyboard.release(keysym);
|
guac_keyboard.release(keysym);
|
||||||
first.defaultPrevented = true;
|
first.defaultPrevented = true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
// Otherwise, fall back to releasing all keys
|
||||||
|
else {
|
||||||
guac_keyboard.reset();
|
guac_keyboard.reset();
|
||||||
|
return first;
|
||||||
|
}
|
||||||
|
|
||||||
return eventLog.shift();
|
return eventLog.shift();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user