Permalink
Browse files

Prevent return counting double.

  • Loading branch information...
1 parent 21e7830 commit f1ee6eb322cdb9ad9e454c18d7b5ca9366b7af53 @georgebrock georgebrock committed Dec 7, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 js/base.js
View
@@ -52,8 +52,10 @@
// Use keypress for general characters
$(window).keypress(function (e) {
- vim.keyPress(e.keyCode);
- return false;
+ if (e.keyCode >= 32) {
+ vim.keyPress(e.keyCode);
+ return false;
+ }
});
};

0 comments on commit f1ee6eb

Please sign in to comment.