mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-862: Restore handling of keyCode 229 (composition).
This commit is contained in:
@@ -988,6 +988,11 @@ Guacamole.Keyboard = function(element) {
|
|||||||
// Fix modifier states
|
// Fix modifier states
|
||||||
update_modifier_state(e);
|
update_modifier_state(e);
|
||||||
|
|
||||||
|
// Ignore (but do not prevent) the "composition" keycode sent by some
|
||||||
|
// browsers when an IME is in use (see: http://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html)
|
||||||
|
if (keyCode === 229)
|
||||||
|
return;
|
||||||
|
|
||||||
// Log event
|
// Log event
|
||||||
var keydownEvent = new KeydownEvent(keyCode, e.keyIdentifier, e.key, e.location || e.keyLocation);
|
var keydownEvent = new KeydownEvent(keyCode, e.keyIdentifier, e.key, e.location || e.keyLocation);
|
||||||
eventLog.push(keydownEvent);
|
eventLog.push(keydownEvent);
|
||||||
|
Reference in New Issue
Block a user