MCPcopy Create free account
hub / github.com/TanStack/hotkeys / getDefaultIgnoreInputs

Function getDefaultIgnoreInputs

packages/hotkeys/src/manager.utils.ts:30–34  ·  view source on GitHub ↗
(parsedHotkey: ParsedHotkey)

Source from the content-addressed store, hash-verified

28 * Ctrl/Meta shortcuts and Escape fire in inputs; single keys and Shift/Alt combos are ignored.
29 */
30export function getDefaultIgnoreInputs(parsedHotkey: ParsedHotkey): boolean {
31 if (parsedHotkey.ctrl || parsedHotkey.meta) return false // Mod+S, Ctrl+C, etc.
32 if (parsedHotkey.key === 'Escape') return false // Close modal, etc.
33 return true // Single keys, Shift+key, Alt+key
34}
35
36/**
37 * Checks if an element is an input-like element that should be ignored for hotkeys.

Callers 3

registerMethod · 0.90
registerMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…