Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/jaywcjlove/hotkeys-js
/ functions
Functions
40 in github.com/jaywcjlove/hotkeys-js
⨍
Functions
40
◇
Types & classes
11
↓ 6 callers
Function
code
(x: string)
src/index.ts:42
↓ 5 callers
Function
pkeys
(keys: number[], key: number)
website/App.tsx:34
↓ 5 callers
Function
pkeysStr
( keysStr: (string | number)[], key: string | number )
website/App.tsx:38
↓ 5 callers
Function
removeEvent
( object: HTMLElement | Document | Window | null, event: string, method: EventListenerOrEventListenerObj
src/utils.ts:22
↓ 4 callers
Function
eachUnbind
({ key, scope, method, splitKey = '+', }: UnbindInfo)
src/index.ts:219
↓ 4 callers
Function
getScope
()
src/index.ts:57
↓ 3 callers
Function
addEvent
Bind event
src/utils.ts:7
↓ 3 callers
Function
removeKeyEvent
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 callers
Function
dispatch
Handle the keydown event
src/index.ts:301
↓ 2 callers
Function
eventHandler
Handle the callback function for the corresponding hotkey
src/index.ts:251
↓ 2 callers
Function
getInitialLanguage
()
website/App.tsx:21
↓ 2 callers
Function
getKeys
Process the input key string and convert it to an array
src/utils.ts:49
↓ 2 callers
Function
getLayoutIndependentKeyCode
* 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 callers
Function
getMods
Convert modifier keys to their corresponding key codes
src/utils.ts:39
↓ 1 callers
Function
clearModifier
Clear modifier keys
src/index.ts:149
↓ 1 callers
Function
compareArray
Compare arrays of modifier keys
src/utils.ts:66
↓ 1 callers
Function
createCoverageMap
(entry, filePath)
test/run.test.js:662
↓ 1 callers
Function
getKey
(x: number)
src/index.ts:47
↓ 1 callers
Function
getModifier
(x: number)
src/index.ts:49
↓ 1 callers
Function
onKeyBoardMouseDown
(item: { keycode: number })
website/App.tsx:108
↓ 1 callers
Function
resolveChromeExecutablePath
()
test/run.test.js:9
↓ 1 callers
Function
setScope
(scope)
src/index.ts:53
↓ 1 callers
Function
unbind
( keysInfo?: string | UnbindInfo | UnbindInfo[], ...args: any[] )
src/index.ts:181
Function
AppRoot
()
website/App.tsx:17
Function
Footer
({ name, href, year, children }: FooterProps)
website/components/Footer.tsx:11
Function
deleteScope
(scope, newScope)
src/index.ts:123
Function
filter
(event)
src/index.ts:87
Function
getAllKeyCodes
()
src/index.ts:71
Function
getPressedKeyCodes
()
src/index.ts:61
Function
getPressedKeyString
()
src/index.ts:65
Function
isPressed
(keyCode)
src/index.ts:115
Function
keydownListener
(event: Event = window.event)
src/index.ts:510
Function
keyupListenr
(event: Event = window.event)
src/index.ts:513
Function
listener
()
src/index.ts:523
Function
onFullscreenChange
()
src/index.ts:531
Function
onKeyBoardMouseUp
()
website/App.tsx:114
Function
onKeyUpEvent
()
website/App.tsx:88
Function
openVersionWebsite
(e: React.ChangeEvent<HTMLSelectElement>)
website/App.tsx:82
Function
toggleLanguage
()
website/App.tsx:93
Function
trigger
(shortcut: string, scope: string = 'all')
src/index.ts:545