Closed gossi closed 7 years ago
We have it setup to map the keycodes for command
and window
keys to:
windowLeft
/cmd
– keycode 91windowRight
/cmdRight
– keycode 92Source: https://github.com/IcarusWorks/ember-key-manager/blob/master/addon/utils/key-codes.js#L74-L77
So you can use either the windows or mac naming in your code and the mapping should work.
Does that answer what you need?
Ah yes, I didn't compare the keycodes. Nevertheless I think adding meta
as alias is good. Using only win or mac terminology doesn't make the code look os-independent.
👍 on aliasing
@gossi fwiw this was released in 0.1.5
I was wondering whether to use a
meta
key for the shortcut, which responds tocmd
onmac
rsp.windows
onwin
and"super"
onlinux
. The javascriptKeyEvent
already supports themeta
key.