Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/hotkeys
/ functions
Functions
603 in github.com/TanStack/hotkeys
⨍
Functions
603
◇
Types & classes
183
↓ 7 callers
Method
getHeldKeys
* Gets an array of currently held key names. * * @returns Array of key names currently being pressed
packages/hotkeys/src/key-state-tracker.ts:197
↓ 7 callers
Function
hotkeyChordFromKeydown
( event: KeyboardEvent, platform: 'mac' | 'windows' | 'linux', )
packages/hotkeys/src/recorder-chord.ts:13
↓ 6 callers
Method
#syncRegistrationView
(registration: SequenceRegistration)
packages/hotkeys/src/sequence-manager.ts:217
↓ 6 callers
Method
_reregisterHotkeys
()
examples/lit/hotkey-recorder/src/app.ts:165
↓ 6 callers
Method
_reregisterSequences
()
examples/lit/hotkey-sequence-recorder/src/app.ts:169
↓ 6 callers
Function
assertValidHotkey
(hotkey: Hotkey | (string & {}))
packages/hotkeys/src/validate.ts:138
↓ 6 callers
Function
conflictBehavior
()
packages/hotkeys-devtools/src/components/DetailsPanel.tsx:213
↓ 6 callers
Function
createKeyboardEvent
( type: 'keydown' | 'keyup', key: string, options: { ctrlKey?: boolean shiftKey?: boolean al
packages/hotkeys/tests/hotkey-recorder.test.ts:4
↓ 6 callers
Function
handleConflict
( conflictingId: string, keyDisplay: string, conflictBehavior: ConflictBehavior, unregister: (id: stri
packages/hotkeys/src/manager.utils.ts:202
↓ 6 callers
Function
injectDefaultHotkeysOptions
()
packages/angular-hotkeys/src/hotkeys-provider.ts:42
↓ 6 callers
Function
isEventForTarget
( event: KeyboardEvent, target: HTMLElement | Document | Window, )
packages/hotkeys/src/manager.utils.ts:146
↓ 6 callers
Function
resolveMaybeRefOrGetter
(value: MaybeRefOrGetter<T>)
packages/vue-hotkeys/src/useHotkeySequences.ts:219
↓ 6 callers
Function
resolveMaybeRefOrGetter
(value: MaybeRefOrGetter<T>)
packages/vue-hotkeys/src/useHotkeys.ts:219
↓ 6 callers
Function
rowTooltip
()
packages/hotkeys-devtools/src/components/HotkeyList.tsx:211
↓ 6 callers
Function
targetConflictBadge
()
packages/hotkeys-devtools/src/components/HotkeyList.tsx:150
↓ 6 callers
Function
useDefaultHotkeysOptions
()
packages/solid-hotkeys/src/HotkeysProvider.tsx:48
↓ 6 callers
Function
useDefaultHotkeysOptions
()
packages/react-hotkeys/src/HotkeysProvider.tsx:54
↓ 6 callers
Function
useDefaultHotkeysOptions
()
packages/vue-hotkeys/src/HotkeysProviderContext.ts:38
↓ 6 callers
Function
useDefaultHotkeysOptions
()
packages/preact-hotkeys/src/HotkeysProvider.tsx:53
↓ 6 callers
Function
useStyles
()
packages/hotkeys-devtools/src/styles/use-styles.ts:680
↓ 5 callers
Function
createKeyHold
( key: IndividualKey | (() => IndividualKey), )
packages/solid-hotkeys/src/createKeyHold.ts:46
↓ 5 callers
Function
createMultiHotkeyHandler
( handlers: MultiHotkeyHandler, options: CreateHotkeyHandlerOptions = {}, )
packages/hotkeys/src/match.ts:210
↓ 5 callers
Function
enabled
()
examples/solid/createHotkeySequences/src/index.tsx:113
↓ 5 callers
Function
injectHeldKeys
()
packages/angular-hotkeys/src/injectHeldKeys.ts:23
↓ 5 callers
Function
injectKeyHold
( key: IndividualKey | (() => IndividualKey), )
packages/angular-hotkeys/src/injectKeyHold.ts:40
↓ 5 callers
Function
useHotkeySequences
( definitions: Array<UseHotkeySequenceDefinition>, commonOptions: UseHotkeySequenceOptions = {}, )
packages/preact-hotkeys/src/useHotkeySequences.ts:68
↓ 5 callers
Function
useKeyHold
(key: IndividualKey)
packages/react-hotkeys/src/useKeyHold.ts:45
↓ 5 callers
Function
useKeyHold
(key: IndividualKey)
packages/preact-hotkeys/src/useKeyHold.ts:45
↓ 4 callers
Method
#removeListener
(handler: (event: KeyboardEvent) => void)
packages/hotkeys/src/hotkey-sequence-recorder.ts:313
↓ 4 callers
Method
_unregisterAll
()
examples/lit/hotkey-sequence-recorder/src/app.ts:160
↓ 4 callers
Method
_unregisterAll
()
examples/lit/hotkey-recorder/src/app.ts:156
↓ 4 callers
Function
checkHotkey
(hotkey: Hotkey | (string & {}))
packages/hotkeys/src/validate.ts:159
↓ 4 callers
Function
createHotkeyRegistrations
()
packages/solid-hotkeys/src/createHotkeyRegistrations.ts:32
↓ 4 callers
Function
createSequenceMatcher
( sequence: HotkeySequence, options: { timeout?: number; platform?: 'mac' | 'windows' | 'linux' } = {}, )
packages/hotkeys/src/sequence-manager.ts:677
↓ 4 callers
Function
injectHotkeyRegistrations
()
packages/angular-hotkeys/src/injectHotkeyRegistrations.ts:35
↓ 4 callers
Function
isRef
( value: unknown, )
packages/react-hotkeys/src/utils.ts:6
↓ 4 callers
Function
isRef
(value: unknown)
packages/preact-hotkeys/src/utils.ts:6
↓ 4 callers
Function
metaName
()
packages/hotkeys-devtools/src/components/HotkeyList.tsx:210
↓ 4 callers
Function
resolveMaybeRefOrGetter
(value: MaybeRefOrGetter<T>)
packages/vue-hotkeys/src/useHotkey.ts:211
↓ 4 callers
Function
resolveMaybeRefOrGetter
(value: MaybeRefOrGetter<T>)
packages/vue-hotkeys/src/useHotkeySequence.ts:185
↓ 4 callers
Function
sequenceKey
(sequence: Array<string>)
packages/hotkeys-devtools/src/components/HotkeyList.tsx:14
↓ 4 callers
Function
sequenceKey
(sequence: Array<string>)
packages/hotkeys-devtools/src/components/DetailsPanel.tsx:62
↓ 4 callers
Function
st
()
packages/hotkeys-devtools/src/components/DetailsPanel.tsx:37
↓ 4 callers
Method
steps
Chords captured in the current session.
packages/lit-hotkeys/src/controllers/hotkey-sequence-recorder.ts:63
↓ 4 callers
Function
toHotkeyRegistrationView
( reg: HotkeyRegistration, )
packages/hotkeys/src/hotkey-manager.ts:102
↓ 4 callers
Function
triggerCount
()
packages/hotkeys-devtools/src/components/HotkeyList.tsx:186
↓ 4 callers
Function
useHotkeyRegistrations
()
packages/preact-hotkeys/src/useHotkeyRegistrations.ts:32
↓ 4 callers
Function
useHotkeysDevtoolsState
()
packages/hotkeys-devtools/src/HotkeysContextProvider.tsx:128
↓ 3 callers
Method
#removeListener
* Removes the keydown event listener from the document.
packages/hotkeys/src/hotkey-recorder.ts:251
↓ 3 callers
Method
#syncState
* Syncs the internal Set to the Store state.
packages/hotkeys/src/key-state-tracker.ts:161
↓ 3 callers
Function
addShortcut
()
examples/react/useHotkeys/src/index.tsx:270
↓ 3 callers
Function
addShortcut
()
examples/solid/createHotkeys/src/index.tsx:241
↓ 3 callers
Function
addShortcut
()
examples/preact/useHotkeys/src/index.tsx:270
↓ 3 callers
Method
cancel
()
packages/hotkeys/src/hotkey-sequence-recorder.ts:292
↓ 3 callers
Function
codeLabel
()
packages/hotkeys-devtools/src/components/HeldKeysTopbar.tsx:28
↓ 3 callers
Function
createHeldKeys
()
packages/solid-hotkeys/src/createHeldKeys.ts:26
↓ 3 callers
Function
effectiveSequenceMatchedSteps
( reg: SequenceRegistrationView, now: number, )
packages/hotkeys-devtools/src/sequence-progress.ts:8
↓ 3 callers
Function
escapeHtml
(s: string)
examples/vanilla/formatForDisplay/src/main.ts:125
↓ 3 callers
Function
hk
Strings that parse correctly but are not in the `Hotkey` template union.
packages/hotkeys/tests/format.test.ts:10
↓ 3 callers
Function
injectLazyStore
( storeSignal: Signal<Atom<TState> | ReadonlyAtom<TState>>, selector: (state: NoInfer<TState>) => TSelecte
packages/angular-hotkeys/src/injectHotkeySequenceRecorder.ts:87
↓ 3 callers
Function
normalizedHotkeyStringFromParsed
* Serializes a parsed hotkey to the canonical string form used for registration * and storage: `Mod` first when the platform allows, then `Alt`, then
packages/hotkeys/src/parse.ts:146
↓ 3 callers
Method
stop
()
packages/hotkeys/src/hotkey-sequence-recorder.ts:279
↓ 3 callers
Function
toRegistrationView
* Builds a devtools view from an internal registration.
packages/hotkeys/src/sequence-manager.ts:155
↓ 3 callers
Function
useHeldKeys
()
packages/react-hotkeys/src/useHeldKeys.ts:26
↓ 3 callers
Function
useHeldKeys
()
packages/preact-hotkeys/src/useHeldKeys.ts:26
↓ 2 callers
Method
#executeHotkeyCallback
* Executes a hotkey callback with proper event handling.
packages/hotkeys/src/hotkey-manager.ts:567
↓ 2 callers
Method
#patchSteps
(updater: (prev: HotkeySequence) => HotkeySequence)
packages/hotkeys/src/hotkey-sequence-recorder.ts:142
↓ 2 callers
Method
#processTargetEvent
* Processes keyboard events for a specific target and event type.
packages/hotkeys/src/hotkey-manager.ts:474
↓ 2 callers
Method
#processTargetEvent
* Processes keyboard events for a specific target and event type.
packages/hotkeys/src/sequence-manager.ts:436
↓ 2 callers
Method
#removeListenersForTarget
* Removes event listeners for a specific target.
packages/hotkeys/src/hotkey-manager.ts:454
↓ 2 callers
Method
#removeListenersForTarget
* Removes event listeners for a specific target.
packages/hotkeys/src/sequence-manager.ts:398
↓ 2 callers
Method
#scheduleIdleTimer
()
packages/hotkeys/src/hotkey-sequence-recorder.ts:121
↓ 2 callers
Method
#unregister
* Unregisters a hotkey by its registration ID.
packages/hotkeys/src/hotkey-manager.ts:400
↓ 2 callers
Method
#unregister
* Unregisters a sequence by its registration ID.
packages/hotkeys/src/sequence-manager.ts:346
↓ 2 callers
Method
_unregisterModal
()
examples/lit/hotkey/src/app.ts:96
↓ 2 callers
Function
applyHeight
(entry?: ResizeObserverEntry)
packages/hotkeys-devtools/src/components/Shell.tsx:96
↓ 2 callers
Method
areAllKeysHeld
* Checks if all of the given keys are currently held. * * @param keys - Array of key names to check * @returns True if all of the keys are cu
packages/hotkeys/src/key-state-tracker.ts:228
↓ 2 callers
Function
buildRowTooltip
(meta?: { name?: string description?: string })
packages/hotkeys-devtools/src/components/HotkeyList.tsx:117
↓ 2 callers
Method
callback
()
packages/hotkeys/src/hotkey-manager.ts:282
↓ 2 callers
Method
callback
()
packages/hotkeys/src/sequence-manager.ts:316
↓ 2 callers
Function
cleanupRegistrations
( registrations: | Map<string, RegistrationRecord> | SvelteMap<string, RegistrationRecord>, )
packages/svelte-hotkeys/src/createHotkeySequences.svelte.ts:32
↓ 2 callers
Function
cleanupRegistrations
( registrations: | Map<string, RegistrationRecord> | SvelteMap<string, RegistrationRecord>, )
packages/svelte-hotkeys/src/createHotkeys.svelte.ts:37
↓ 2 callers
Function
conflictBehavior
()
packages/hotkeys-devtools/src/components/HotkeyList.tsx:147
↓ 2 callers
Function
createBraveLikeEvent
* Creates an event proxy that simulates Brave's non-standard behavior where * event.currentTarget is document.documentElement instead of document
packages/hotkeys/tests/hotkey-manager.test.ts:345
↓ 2 callers
Method
destroy
* Clean up event listeners and reset state. * * Call this when you're done with the recorder to ensure * all event listeners are properly rem
packages/hotkeys/src/hotkey-recorder.ts:265
↓ 2 callers
Method
destroy
()
packages/hotkeys/src/hotkey-sequence-recorder.ts:320
↓ 2 callers
Function
dispatchKeyup
( target: EventTarget, init: KeyboardEventInit, )
packages/lit-hotkeys/tests/hotkey-sequence.spec.ts:36
↓ 2 callers
Function
generateId
* Generates a unique ID for hotkey registrations.
packages/hotkeys/src/hotkey-manager.ts:163
↓ 2 callers
Function
getDefaultKeyStateTrackerState
* Returns the default state for KeyStateTracker.
packages/hotkeys/src/key-state-tracker.ts:22
↓ 2 callers
Function
getHotkeysContext
()
packages/svelte-hotkeys/src/HotkeysCtx.ts:51
↓ 2 callers
Function
getTargetLabel
(target: HTMLElement | Document | Window)
packages/hotkeys-devtools/src/components/HotkeyList.tsx:23
↓ 2 callers
Function
getTargetTooltip
(target: HTMLElement | Document | Window)
packages/hotkeys-devtools/src/components/HotkeyList.tsx:36
↓ 2 callers
Function
hasScopeConflict
()
packages/hotkeys-devtools/src/components/HotkeyList.tsx:145
↓ 2 callers
Function
hasTargetConflict
()
packages/hotkeys-devtools/src/components/HotkeyList.tsx:144
↓ 2 callers
Function
injectHotkeySequences
( sequences: | Array<InjectHotkeySequenceDefinition> | (() => Array<InjectHotkeySequenceDefinition>)
packages/angular-hotkeys/src/injectHotkeySequences.ts:51
↓ 2 callers
Function
injectLazyStore
( storeSignal: Signal<Atom<TState> | ReadonlyAtom<TState>>, selector: (state: NoInfer<TState>) => TSelecte
packages/angular-hotkeys/src/injectHotkeyRecorder.ts:112
↓ 2 callers
Method
isAnyKeyHeld
* Checks if any of the given keys are currently held. * * @param keys - Array of key names to check * @returns True if any of the keys are cu
packages/hotkeys/src/key-state-tracker.ts:218
↓ 2 callers
Function
isKnownKey
* Checks if a key is in the known keys set.
packages/hotkeys/src/validate.ts:98
↓ 2 callers
Function
isSingleLetterKey
(key: string)
packages/hotkeys/src/constants.ts:439
↓ 2 callers
Function
itemStyle
()
packages/hotkeys-devtools/src/components/DetailsPanel.tsx:413
← previous
next →
101–200 of 603, ranked by callers