Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 56a97eeee2cbcc561718829064e8f26686d21b1d 2 parents df69c71 + e2912be
@chrisdone authored
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){
Please sign in to comment.
Something went wrong with that request. Please try again.