Repository navigation
ref(hotkeys): Use TanStack Hotkeys and add devtools - #129176
Conversation
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit bb4ab61. Configure here.
Story previewsPreview the stories changed in this PR on the Vercel deployment: Preview deployment: https://sentry-ifhsog6fv.sentry.dev |
| includeInputs: true, | ||
| : ( | ||
| [ | ||
| 'Mod+/', // QWERTY (US, UK, most CJK, RTL scripts) |
There was a problem hiding this comment.
On AZERTY keyboards, Cmd++ now matches Mod+/, opening Seer and blocking browser zoom. Should we preserve the previous guard and restore the regression test?
There was a problem hiding this comment.
not sure which guard or regression test you are referring to? I don’t think this PR removes any behaviour that was there before
There was a problem hiding this comment.
I meant the guard in
sentry/static/packages/scraps/src/hotkey/keyMappings.tsx
Lines 131 to 136 in 4550de1
in this PR, we are also removing this assertion
There was a problem hiding this comment.
I will check back if TanStack covers these cases
There was a problem hiding this comment.
@priscilawebdev thanks for this 🙏
I’ve brought back the possibility to zoom for our french users here:d37d935
But I’ve also reported this upstream because I think (hope) that TanStack HotKeys would handle this for us
…o tkdodo/ref/tanstack-hotkeys
Migrate our manual hotkey implementation to TanStack HotKeys
This removes a ton of wiring we’re doing ourselves now while at the same time, giving us better support for international keyboard layouts.
For example, on a
QWERTZkeyboard layout (which I’m using), it’s not possible to open story search because there is no/key. This works now with TanStack HotKeys. There’s also devtools.