OSX pasting issue - check for meta key in addition to control key when pasting with keyboard #18

Merged
merged 1 commit into from Mar 29, 2012

Conversation

Projects
None yet
2 participants
Contributor

johnkpaul commented Mar 29, 2012

When attempting to paste using cmd+v into a jquery-console box, the result can be seen here - fogus/himera#2

Basically, the text is pasted, but before that the character "v" is added. This is because on OSX, the command key does not set event.ctrlKey to true, but rather event.metaKey. This is by design on macs, as it follows the W3C Events Specification. http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent-metaKey

chrisdone added a commit that referenced this pull request Mar 29, 2012

Merge pull request #18 from johnkpaul/fix_osx_paste_bug
OSX pasting issue - check for meta key in addition to control key when pasting with keyboard

@chrisdone chrisdone merged commit 56a97ee into chrisdone:master Mar 29, 2012

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