@@ -104,7 +104,7 @@ $(document).ready(function() {
104104 }
105105 };
106106
107− $(document).keyup(function(e) {
107+ $(document).keydown(function(e) {
108108 // check for modifiers so we don't break browser's hotkeys
109109 if (vimKeys.hasOwnProperty(e.keyCode)
110110 && !e.ctrlKey
@@ -118,6 +118,7 @@ $(document).ready(function() {
118118 }
119119 } else {
120120 if (e.target === document.body) {
121+ e.preventDefault();
121122 vimKeys[e.keyCode].fun();
122123 }
123124 }