本页还没有译文
本页 6 段还没译成Русский,下面显示的是英文原文。SingleModifierHotkey
还没翻译译自英文(tanstack.com)本页 6 段都还没译
type SingleModifierHotkey =
| `Control+${Key}`
| `Alt+${Key}`
| `Shift+${Key}`
| `Meta+${Key}`
| `Mod+${Key}`;Defined in: hotkey.types.ts:18
Single modifier + key combinations. Uses canonical modifiers (4) + Mod (1) = 5 modifiers.
The Mod modifier is platform-adaptive:
- macOS: Resolves to
Meta(Command key ⌘) - Windows/Linux: Resolves to
Control(Ctrl key)
This enables cross-platform hotkey definitions that automatically adapt to the platform.
For example, Mod+S becomes Command+S on Mac and Ctrl+S on Windows/Linux.
AI 翻译查看英文原文