ctrl + thing commands don't work #1

Closed
seeker89 opened this Issue Nov 7, 2012 · 8 comments

Projects

None yet

4 participants

@seeker89

On mac, ctrl commands refuse to work - either with the actual ctrl, as the cmd

@frankrousseau

As a mac developer, do you have any idea of how could it be fixed ?

@bleuse

I just tried the stuff on Snow Leopard (a bit old though...) under Safari 5.1.7. Seems to work for me with ctrl key except for the ctrl + space binding (which is by the way linked to Spotlight by default).

@frankrousseau

Unfortunately, I do not have Apple hardware to try to fix this. Any suggestions are welcome!

@frankrousseau

Is ctrl + D shortcut in the same case ?

It could fit well to replace ctrl+space

@jsilvestre

We could use the event.metaKey to detect the CMD button instead of CTRL on OSX.

IE:

isCtrlPressed = event.ctrlKey or event.metaKey

What do you think ?

edit: apparently this is a bit buggy. The event.metaKey is true only for keydown events in Chrome (source: http://stackoverflow.com/questions/3902635/how-does-one-capture-a-macs-command-key-via-javascript)

@frankrousseau

Is it solved ?

@frankrousseau

Ok let's close it. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment