MCPcopy Index your code

hub / github.com/jaywcjlove/hotkeys-js / functions

Functions40 in github.com/jaywcjlove/hotkeys-js

↓ 6 callersFunctioncode
(x: string)
src/index.ts:42
↓ 5 callersFunctionpkeys
(keys: number[], key: number)
website/App.tsx:34
↓ 5 callersFunctionpkeysStr
( keysStr: (string | number)[], key: string | number )
website/App.tsx:38
↓ 5 callersFunctionremoveEvent
( object: HTMLElement | Document | Window | null, event: string, method: EventListenerOrEventListenerObj
src/utils.ts:22
↓ 4 callersFunctioneachUnbind
({ key, scope, method, splitKey = '+', }: UnbindInfo)
src/index.ts:219
↓ 4 callersFunctiongetScope
()
src/index.ts:57
↓ 3 callersFunctionaddEvent
Bind event
src/utils.ts:7
↓ 3 callersFunctionremoveKeyEvent
Clean up event listeners. After unbinding, check whether the element still has any hotkeys bound. If not, remove its event listeners.
src/index.ts:559
↓ 2 callersFunctiondispatch
Handle the keydown event
src/index.ts:301
↓ 2 callersFunctioneventHandler
Handle the callback function for the corresponding hotkey
src/index.ts:251
↓ 2 callersFunctiongetInitialLanguage
()
website/App.tsx:21
↓ 2 callersFunctiongetKeys
Process the input key string and convert it to an array
src/utils.ts:49
↓ 2 callersFunctiongetLayoutIndependentKeyCode
* Get a normalized key code from keyboard event. * * For Latin letters, prefer `event.key` so alternate Latin layouts such as * Dvorak/Colemak matc
src/utils.ts:86
↓ 2 callersFunctiongetMods
Convert modifier keys to their corresponding key codes
src/utils.ts:39
↓ 1 callersFunctionclearModifier
Clear modifier keys
src/index.ts:149
↓ 1 callersFunctioncompareArray
Compare arrays of modifier keys
src/utils.ts:66
↓ 1 callersFunctioncreateCoverageMap
(entry, filePath)
test/run.test.js:662
↓ 1 callersFunctiongetKey
(x: number)
src/index.ts:47
↓ 1 callersFunctiongetModifier
(x: number)
src/index.ts:49
↓ 1 callersFunctiononKeyBoardMouseDown
(item: { keycode: number })
website/App.tsx:108
↓ 1 callersFunctionresolveChromeExecutablePath
()
test/run.test.js:9
↓ 1 callersFunctionsetScope
(scope)
src/index.ts:53
↓ 1 callersFunctionunbind
( keysInfo?: string | UnbindInfo | UnbindInfo[], ...args: any[] )
src/index.ts:181
FunctionAppRoot
()
website/App.tsx:17
FunctionFooter
({ name, href, year, children }: FooterProps)
website/components/Footer.tsx:11
FunctiondeleteScope
(scope, newScope)
src/index.ts:123
Functionfilter
(event)
src/index.ts:87
FunctiongetAllKeyCodes
()
src/index.ts:71
FunctiongetPressedKeyCodes
()
src/index.ts:61
FunctiongetPressedKeyString
()
src/index.ts:65
FunctionisPressed
(keyCode)
src/index.ts:115
FunctionkeydownListener
(event: Event = window.event)
src/index.ts:510
FunctionkeyupListenr
(event: Event = window.event)
src/index.ts:513
Functionlistener
()
src/index.ts:523
FunctiononFullscreenChange
()
src/index.ts:531
FunctiononKeyBoardMouseUp
()
website/App.tsx:114
FunctiononKeyUpEvent
()
website/App.tsx:88
FunctionopenVersionWebsite
(e: React.ChangeEvent<HTMLSelectElement>)
website/App.tsx:82
FunctiontoggleLanguage
()
website/App.tsx:93
Functiontrigger
(shortcut: string, scope: string = 'all')
src/index.ts:545