Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Prevent return counting double.

  • Loading branch information...
commit f1ee6eb322cdb9ad9e454c18d7b5ca9366b7af53 1 parent 21e7830
George Brocklehurst authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  js/base.js
6  js/base.js
@@ -52,8 +52,10 @@
52 52
 
53 53
         // Use keypress for general characters
54 54
         $(window).keypress(function (e) {
55  
-            vim.keyPress(e.keyCode);
56  
-            return false;
  55
+            if (e.keyCode >= 32) {
  56
+                vim.keyPress(e.keyCode);
  57
+                return false;
  58
+            }
57 59
         });
58 60
     };
59 61
 

0 notes on commit f1ee6eb

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