Permalink
Browse files

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
  • Loading branch information...
2 parents df69c71 + e2912be commit 56a97eeee2cbcc561718829064e8f26686d21b1d @chrisdone committed Mar 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery.console.js
View
2 jquery.console.js
@@ -285,7 +285,7 @@
return false;
}
// // C-v: don't insert on paste event
- if (e.ctrlKey && String.fromCharCode(keyCode).toLowerCase() == 'v') {
+ if ((e.ctrlKey || e.metaKey) && String.fromCharCode(keyCode).toLowerCase() == 'v') {
return true;
}
if (acceptInput && cancelKeyPress != keyCode && keyCode >= 32){

0 comments on commit 56a97ee

Please sign in to comment.