Skip to content

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
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){
Something went wrong with that request. Please try again.