本页还没有译文
本页 15 段还没译成Français,下面显示的是英文原文。hasNonModifierKey
还没翻译译自英文(tanstack.com)本页 15 段都还没译
function hasNonModifierKey(hotkey, platform?): boolean;Defined in: parse.ts:336
Checks if a hotkey or ParsedHotkey contains at least one non-modifier key.
This is useful for validating that a recorded hotkey is complete and not just a combination of modifiers without an action key.
Parameters
hotkey
| Hotkey
| string & object
| ParsedHotkey
The hotkey string or ParsedHotkey to check
platform?
"mac" | "windows" | "linux"
The target platform for parsing (defaults to auto-detection)
Returns
boolean
True if the hotkey contains at least one non-modifier key
Example
hasNonModifierKey('Control+Shift+S') // true
hasNonModifierKey('Control+Shift') // false (no action key)
hasNonModifierKey(parseHotkey('Mod+A')) // trueAI 翻译查看英文原文