GUAC-1322: Within interpret_event() in Guacamole.Keyboard, always return the interpreted event (or null), as required by its definition.
This commit is contained in:
1 parent
f4a57e6789
commit
1d5b47a70a
1 file changed
+6
-1
@@ -933,13 +933,18 @@ Guacamole.Keyboard = function(element) {
|
||||
// Keyup event
|
||||
else if (first instanceof KeyupEvent) {
|
||||
|
||||
// Release specific key if known
|
||||
var keysym = first.keysym;
|
||||
if (keysym) {
|
||||
guac_keyboard.release(keysym);
|
||||
first.defaultPrevented = true;
|
||||
}
|
||||
else
|
||||
|
||||
// Otherwise, fall back to releasing all keys
|
||||
else {
|
||||
guac_keyboard.reset();
|
||||
return first;
|
||||
}
|
||||
|
||||
return eventLog.shift();
|
||||
|
||||
|
||||
Reference in new issue
Block a user