mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 15:11:22 +00:00
Only send release for ctrl+alt when both are pressed (we assume Ctrl+Alt == AltGr in the context of keypress).
This commit is contained in:
@@ -473,11 +473,11 @@ Guacamole.Keyboard = function(element) {
|
|||||||
|
|
||||||
keypress_keysym = getKeySymFromCharCode(keynum);
|
keypress_keysym = getKeySymFromCharCode(keynum);
|
||||||
|
|
||||||
// If event identified as a typable character
|
// If event identified as a typable character, and we're holding Ctrl+Alt,
|
||||||
// then release Ctrl and Alt (if pressed)
|
// assume Ctrl+Alt is actually AltGr, and release both.
|
||||||
if (!isControlCharacter(keynum)) {
|
if (!isControlCharacter(keynum) && guac_keyboard.modifiers.ctrl && guac_keyboard.modifiers.alt) {
|
||||||
if (guac_keyboard.modifiers.ctrl) sendKeyReleased(0xFFE3);
|
sendKeyReleased(0xFFE3);
|
||||||
if (guac_keyboard.modifiers.alt) sendKeyReleased(0xFFE9);
|
sendKeyReleased(0xFFE9);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Defer handling of event until after any other pending
|
// Defer handling of event until after any other pending
|
||||||
|
Reference in New Issue
Block a user