Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Capturing cmd-key combos on Opera on Mac #10

Closed
marijnh opened this Issue Feb 14, 2011 · 2 comments

Comments

Projects
None yet
1 participant
Owner

marijnh commented Feb 14, 2011

Safari, Chrome, and Firefox set the metaKey event object property for the cmd key, and ctrlKey for control. Opera seems to do this the other way around.

But the real problem is that Opera Mac does not seem to generate any key event at all for cmd-a, cmd-z, and probably a bunch of other keys. This means we can not intercept these to do the right thing. I'll have to see how/whether other projects (Ymacs, ACE) handle this.

Opera Linux (and probably Win) doesn't seem to have this problem.

Owner

marijnh commented Feb 18, 2011

Neither Ymacs nor ACE works on Opera (11.01) OS X. I'm shelving this -- CodeMirror mostly works, but doesn't handle all key events it should handle.

Owner

marijnh commented Apr 22, 2011

(This can probably be done by detecting the cmd keydowns and keeping our own flag.)

@marijnh marijnh closed this in 54095aa Sep 18, 2012

marijnh added a commit that referenced this issue Sep 18, 2012

Flip ctrlKey and metaKey properties on Opera Mac
I don't know what they were thinking, but this, on
recent Opera versions, seems to give the correct
result.

Closes #10

mb-crt referenced this issue in mb-crt/CodeMirror2 Sep 20, 2012

Merge pull request #10 from mb-crt/nclab
fixing an unwanted selection created by clicking on unfocused CM

mutahhir referenced this issue in mutahhir/CodeMirror Jun 11, 2013

Merge pull request #10 from mutahhir/master
Minor modifications to the addWidget system

gcziprusz pushed a commit to gcziprusz/CodeMirror that referenced this issue Dec 15, 2015

Merge pull request #10 from wesleycho/master
Adapted for change in default Bower component install location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment