From 8fbd4b124d299cdaf6a45cd018e4f88883ad5573 Mon Sep 17 00:00:00 2001 From: Corentin SORIANO Date: Sun, 9 Nov 2025 13:49:21 +0100 Subject: [PATCH] GUACAMOLE-2167: Fix for incorrect handling of the ALTGR key. --- guacamole-common-js/src/main/webapp/modules/Keyboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guacamole-common-js/src/main/webapp/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js index a9cf5b651..b5c2a40e4 100644 --- a/guacamole-common-js/src/main/webapp/modules/Keyboard.js +++ b/guacamole-common-js/src/main/webapp/modules/Keyboard.js @@ -1514,13 +1514,13 @@ Guacamole.Keyboard.ModifierState = function() { * The current state of keyboard modifiers. */ Guacamole.Keyboard.ModifierState.fromKeyboardEvent = function(e) { - + var state = new Guacamole.Keyboard.ModifierState(); // Assign states from old flags state.shift = e.shiftKey; - state.ctrl = e.ctrlKey; - state.alt = e.altKey; + state.ctrl = e.getModifierState('AltGraph') || e.ctrlKey; + state.alt = e.getModifierState('AltGraph') || e.altKey; state.meta = e.metaKey; // Use DOM3 getModifierState() for others