MCPcopy
hub / github.com/github/hotkey / registerKeypress

Method registerKeypress

src/sequence.ts:36–39  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

34 }
35
36 registerKeypress(event: KeyboardEvent): void {
37 this._path = [...this._path, eventToHotkeyString(event)]
38 this.startTimer()
39 }
40
41 reset(): void {
42 this.killTimer()

Callers 1

keyDownHandlerFunction · 0.80

Calls 2

startTimerMethod · 0.95
eventToHotkeyStringFunction · 0.85

Tested by

no test coverage detected