Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Prevent return counting double.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebrock committed Dec 7, 2012
1 parent 21e7830 commit f1ee6eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/base.js
Expand Up @@ -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;
}
});
};

Expand Down

0 comments on commit f1ee6eb

Please sign in to comment.