Skip to content
This repository
Browse code

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
Chris Done authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  jquery.console.js
2  jquery.console.js
@@ -285,7 +285,7 @@
285 285
                 return false;
286 286
             }
287 287
           // // C-v: don't insert on paste event
288  
-            if (e.ctrlKey && String.fromCharCode(keyCode).toLowerCase() == 'v') {
  288
+            if ((e.ctrlKey || e.metaKey) && String.fromCharCode(keyCode).toLowerCase() == 'v') {
289 289
               return true;
290 290
             }
291 291
             if (acceptInput && cancelKeyPress != keyCode && keyCode >= 32){

0 notes on commit 56a97ee

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