summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/shortcuts_find_file.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/shortcuts_find_file.js')
-rw-r--r--app/assets/javascripts/shortcuts_find_file.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/shortcuts_find_file.js b/app/assets/javascripts/shortcuts_find_file.js
index 1e246a56b85..8658081c6c2 100644
--- a/app/assets/javascripts/shortcuts_find_file.js
+++ b/app/assets/javascripts/shortcuts_find_file.js
@@ -13,8 +13,8 @@ export default class ShortcutsFindFile extends ShortcutsNavigation {
element === this.projectFindFile.inputElement[0] &&
(combo === 'up' || combo === 'down' || combo === 'esc' || combo === 'enter')
) {
- // when press up/down key in textbox, cusor prevent to move to home/end
- event.preventDefault();
+ // when press up/down key in textbox, cursor prevent to move to home/end
+ e.preventDefault();
return false;
}