Merge patch branch changes to main.

This commit is contained in:
Virtually Nick committed 2025-11-09 20:30:36 -05:00
commit 93f9817019
1 file changed
+3 -3
@@ -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