mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-1113: Always treat alt as AltGr on Mac.
This commit is contained in:
@@ -295,6 +295,10 @@ Guacamole.Keyboard = function Keyboard(element) {
|
|||||||
// Determine whether default action for Alt+combinations must be prevented
|
// Determine whether default action for Alt+combinations must be prevented
|
||||||
var prevent_alt = !this.modifiers.ctrl && !quirks.altIsTypableOnly;
|
var prevent_alt = !this.modifiers.ctrl && !quirks.altIsTypableOnly;
|
||||||
|
|
||||||
|
// If alt is typeable only, and this is actually an alt key event, treat as AltGr instead
|
||||||
|
if (quirks.altIsTypableOnly && (this.keysym === 0xFFE9 || this.keysym === 0xFFEA))
|
||||||
|
this.keysym = 0xFE03;
|
||||||
|
|
||||||
// Determine whether default action for Ctrl+combinations must be prevented
|
// Determine whether default action for Ctrl+combinations must be prevented
|
||||||
var prevent_ctrl = !this.modifiers.alt;
|
var prevent_ctrl = !this.modifiers.alt;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user