GUACAMOLE-2167: Fix for incorrect handling of the ALTGR key.
This commit is contained in:
1 file changed
+3
-3
@@ -1514,13 +1514,13 @@ Guacamole.Keyboard.ModifierState = function() {
|
|||||||
* The current state of keyboard modifiers.
|
* The current state of keyboard modifiers.
|
||||||
*/
|
*/
|
||||||
Guacamole.Keyboard.ModifierState.fromKeyboardEvent = function(e) {
|
Guacamole.Keyboard.ModifierState.fromKeyboardEvent = function(e) {
|
||||||
|
|
||||||
var state = new Guacamole.Keyboard.ModifierState();
|
var state = new Guacamole.Keyboard.ModifierState();
|
||||||
|
|
||||||
// Assign states from old flags
|
// Assign states from old flags
|
||||||
state.shift = e.shiftKey;
|
state.shift = e.shiftKey;
|
||||||
state.ctrl = e.ctrlKey;
|
state.ctrl = e.getModifierState('AltGraph') || e.ctrlKey;
|
||||||
state.alt = e.altKey;
|
state.alt = e.getModifierState('AltGraph') || e.altKey;
|
||||||
state.meta = e.metaKey;
|
state.meta = e.metaKey;
|
||||||
|
|
||||||
// Use DOM3 getModifierState() for others
|
// Use DOM3 getModifierState() for others
|
||||||
|
|||||||
Reference in new issue
Block a user