Post

I shipped a rather large update to TanStack Hotkeys yesterday, which adds much better physical key support options, instead of mostly relying on event.key with only event.code fallbacks like before. This was an overdue correction that was needed!

The string templates still use event.key matching by default, but now, if you want to force a physical key check, you can just use [] around a physical key code, Hotkey recording now defaults to physical key recording in order to fix multiple bugs across different layouts.

From my testing, if you define hotkeys with our initial event.key string templates, you should actually have a pretty safe setup already. It's the custom hotkey recording features that add a lot of complexity and bugs, and now I think we're closer to addressing those issues with this latest update.

1 repost1 like