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

Method reset

content_scripts/mode_key_handler.js:30–34  ·  view source on GitHub ↗
(countPrefix)

Source from the content-addressed store, hash-verified

28
29 // Reset the key state, optionally retaining the count provided.
30 reset(countPrefix) {
31 if (countPrefix == null) countPrefix = 0;
32 this.countPrefix = countPrefix;
33 this.keyState = [this.keyMapping];
34 }
35
36 init(options) {
37 const args = Object.assign(options, { keydown: this.onKeydown.bind(this) });

Callers 5

setKeyMappingMethod · 0.95
setPassKeysMethod · 0.95
initMethod · 0.95
onKeydownMethod · 0.95
handleKeyCharMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected