TanStack

ShiftableKey

ts
type ShiftableKey = 
  | NonSymbolKey
  | Exclude<LayoutKey, BuiltInSymbolKey>
  | PhysicalKey;

Defined in: key.types.ts:347

The keys a hotkey string can combine with Shift: letters, digits, named keys such as Tab, and physical keys. From LayoutKey, the symbols of the built-in key sets are left out, so Shift+Ä is allowed and Shift+§ isn't. A key from a custom key set that no built-in set has, such as Arabic ا, is allowed.

Symbols are left out, because Shift changes which symbol a key types and layouts put symbols on different keys: Shift+/ would fire on ? on a US keyboard and on / on a German one. Write the symbol Shift types, such as ?, or name the physical key, such as Shift+[Slash]. The rule holds with every other modifier too: write Mod+?, not Mod+Shift+/.