本页还没有译文
本页 4 段还没译成Français,下面显示的是英文原文。ParsedHotkey
还没翻译译自英文(tanstack.com)本页 4 段都还没译
type ParsedHotkey = ParsedModifiers &
| {
code?: never;
key: LogicalKey | string & object;
}
| {
code: string;
key?: never;
};Defined in: hotkey.types.ts:156
A parsed binding matches either a logical key or a physical code, never both.
Check code !== undefined to narrow to a physical binding. Its logical
character is unknown without a keyboard event and is not stored in key.
Example
parseHotkey('Alt+S') // { key: 'S', alt: true, ... }
parseHotkey('Alt+[KeyS]') // { code: 'KeyS', alt: true, ... } — no key propertyAI 翻译查看英文原文