Skip to content
Browse files

check for meta key in addition to control key when pasting with keyboard

  • Loading branch information...
1 parent df69c71 commit e2912bed147b2f542569fba0489a3cae921c7757 @johnkpaul johnkpaul committed
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 e2912be

Please sign in to comment.
Something went wrong with that request. Please try again.