Open daleconboy opened 2 years ago
I tried applying some key mappings on a Mac for the Option key via the likes of <A-h> but the mappings aren't taking effect.
Option
<A-h>
Looking at the logs when pressing the key combinations in question, it's reporting that alt = false , but altGr = true.
alt = false
altGr = true
[ { "key": "<A-h>", "command": "window.moveLeft", "when": "normalMode" }, { "key": "<A-l>", "command": "window.moveRight", "when": "normalMode" } ]
[INFO] [609.252s] Oni2.Store.dispatch : dispatch: KeyDown { key = [(KeyPress.PhysicalKey { PhysicalKey.key = (Key.Character <opaque>); modifiers = { Modifiers.control = false; alt = false; altGr = true; shift = false; super = false } }); (KeyPress.PhysicalKey { PhysicalKey.key = (Key.Character <opaque>); modifiers = { Modifiers.control = false; alt = false; altGr = false; shift = false; super = false } }) ]; scancode = 11; time = <opaque>} [INFO] [609.253s] Oni2.Store.dispatch : dispatch: (TextInput ("\203\153", <opaque>)) [DEBUG] [609.254s] Oni2.Store.dispatch : After: (TextInput ("\203\153", <opaque>))
I tried applying some key mappings on a Mac for the
Option
key via the likes of<A-h>
but the mappings aren't taking effect.Looking at the logs when pressing the key combinations in question, it's reporting that
alt = false
, butaltGr = true
.keybindings.js
Oni Log output when pressing Opt-h