aboutsummaryrefslogtreecommitdiffstats
path: root/vimiumFrontend.js
diff options
context:
space:
mode:
Diffstat (limited to 'vimiumFrontend.js')
-rw-r--r--vimiumFrontend.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index 8a4da834..7e601d60 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -526,7 +526,7 @@ function onKeydown(event) {
//
// TOOD(ilya): Revisit this. Not sure it's the absolute best approach.
if (keyChar == "" && !isInsertMode() && (currentCompletionKeys.indexOf(getKeyChar(event)) != -1 ||
- validFirstKeys[getKeyChar(event)]))
+ isValidFirstKey(getKeyChar(event))))
event.stopPropagation();
}
@@ -560,6 +560,10 @@ function refreshCompletionKeys(response) {
}
}
+function isValidFirstKey(keyChar) {
+ return validFirstKeys[keyChar] || /\d/.test(keyChar);
+}
+
function onFocusCapturePhase(event) {
if (isFocusable(event.target) && !findMode)
enterInsertModeWithoutShowingIndicator(event.target);