Skip to content

Comments

feat(hotkeys): add numpad key support#27

Closed
MohammedALjaberi wants to merge 1 commit intoTanStack:mainfrom
MohammedALjaberi:feat-numpad-keys
Closed

feat(hotkeys): add numpad key support#27
MohammedALjaberi wants to merge 1 commit intoTanStack:mainfrom
MohammedALjaberi:feat-numpad-keys

Conversation

@MohammedALjaberi
Copy link
Contributor

@MohammedALjaberi MohammedALjaberi commented Feb 19, 2026

Summary

Add type-safe support for numpad keys, enabling autocomplete for shortcuts like Mod+Numpad1 or NumpadEnter.

🎯 Changes

  • Add NumpadKey type with 16 numpad keys: Numpad0-Numpad9, NumpadAdd, NumpadSubtract, NumpadMultiply, NumpadDivide, NumpadDecimal, NumpadEnter
  • Add NUMPAD_KEYS constant set for validation
  • Include numpad keys in ALL_KEYS union
  • Add NumpadKey to NonPunctuationKey for proper Shift combination typing

Use Cases

  • Professional apps (accounting, 3D modeling like Blender)
  • Data entry applications
  • Gaming shortcuts
  • Accessibility (one-handed numpad operation)

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 19, 2026

Open in StackBlitz

@tanstack/hotkeys

npm i https://pkg.pr.new/TanStack/hotkeys/@tanstack/hotkeys@27

@tanstack/hotkeys-devtools

npm i https://pkg.pr.new/TanStack/hotkeys/@tanstack/hotkeys-devtools@27

@tanstack/react-hotkeys

npm i https://pkg.pr.new/TanStack/hotkeys/@tanstack/react-hotkeys@27

@tanstack/react-hotkeys-devtools

npm i https://pkg.pr.new/TanStack/hotkeys/@tanstack/react-hotkeys-devtools@27

@tanstack/solid-hotkeys

npm i https://pkg.pr.new/TanStack/hotkeys/@tanstack/solid-hotkeys@27

@tanstack/solid-hotkeys-devtools

npm i https://pkg.pr.new/TanStack/hotkeys/@tanstack/solid-hotkeys-devtools@27

commit: 953305a

@MohammedALjaberi MohammedALjaberi force-pushed the feat-numpad-keys branch 2 times, most recently from 7f24040 to 2ac14ee Compare February 19, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant