MCPcopy Index your code
hub / github.com/philc/vimium / isCountKey

Method isCountKey

content_scripts/mode_key_handler.js:96–100  ·  view source on GitHub ↗
(keyChar)

Source from the content-addressed store, hash-verified

94
95 // This tests whether keyChar is a digit (and accounts for pass keys).
96 isCountKey(keyChar) {
97 return keyChar &&
98 ((this.countPrefix > 0 ? "0" : "1") <= keyChar && keyChar <= "9") &&
99 !this.isPassKey(keyChar);
100 }
101
102 // Keystrokes are *never* considered pass keys if the user has begun entering a command. So, for
103 // example, if 't' is a passKey, then the "t"-s of 'gt' and '99t' are neverthless handled as

Callers 2

onKeydownMethod · 0.95
dom_tests.jsFile · 0.80

Calls 1

isPassKeyMethod · 0.95

Tested by

no test coverage detected