本页还没有译文
本页 13 段还没译成Español,下面显示的是英文原文。matchesHeldModifiers
还没翻译译自英文(tanstack.com)本页 13 段都还没译
function matchesHeldModifiers(
hotkey,
heldKeys,
options?): boolean;Defined in: hint.ts:23
Returns whether held modifiers should reveal a shortcut hint.
By default, any nonempty subset of the binding's modifiers qualifies; an
unrelated modifier hides the hint. exact requires every binding modifier.
Nonmodifier keys are ignored. This does not check registration or focus.
Parameters
hotkey
heldKeys
readonly string[]
options?
HeldModifierOptions = {}
Returns
boolean
Example
matchesHeldModifiers('Alt+Shift+[KeyK]', ['Alt']) // true
matchesHeldModifiers('Alt+Shift+[KeyK]', ['Alt', 'Control']) // falseAI 翻译查看英文原文