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

Method isMappedKey

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

Source from the content-addressed store, hash-verified

87 // This tests whether there is a mapping of keyChar in the current key state (and accounts for
88 // pass keys).
89 isMappedKey(keyChar) {
90 // TODO(philc): tweak the generated js.
91 return ((this.keyState.filter((mapping) => keyChar in mapping))[0] != null) &&
92 !this.isPassKey(keyChar);
93 }
94
95 // This tests whether keyChar is a digit (and accounts for pass keys).
96 isCountKey(keyChar) {

Callers 2

onKeydownMethod · 0.95
dom_tests.jsFile · 0.80

Calls 2

isPassKeyMethod · 0.95
filterMethod · 0.45

Tested by

no test coverage detected