Keyboard Shortcut Improvements #218

Closed
opened 2026-04-05 16:16:47 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @0xkubectl on 11/11/2025

  • fix: add useMagicKeys from vueuse
  • fix: use useMagicKeys composable to watch for keyboard changes

Use a more composable way of accessing keyboard shortcuts. Stolen & adapted from useMagicKeys from vueuse.

Also I tried adding the KeyD keycode to hopefully fix some windows versions that ate glue for breakfast. I have not tested that, it should not regress for already working versions.

Edit:
I added @vueuse/core as a dependency - there is a bunch of useful stuff in there, that will probably be helpful elsewhere. Furthermore I took the two instances where keyboard interactions where listened to and moved them to useMagicKeys. While testing the shortcuts that open/reload the window I noticed the devtools where not opening on Linux and added a fix for that aswell.

Please let me know what you think :]

*Originally created by @0xkubectl on 11/11/2025* - **fix: add useMagicKeys from vueuse** - **fix: use useMagicKeys composable to watch for keyboard changes** ~~Use a more composable way of accessing keyboard shortcuts. Stolen & adapted from [useMagicKeys](https://github.com/vueuse/vueuse/blob/main/packages/core/useMagicKeys/index.ts) from [vueuse](https://github.com/vueuse/vueuse).~~ Also I tried adding the `KeyD` keycode to hopefully fix some windows versions that ate glue for breakfast. I have not tested that, it should not regress for already working versions. Edit: I added @vueuse/core as a dependency - there is a bunch of useful stuff in there, that will probably be helpful elsewhere. Furthermore I took the two instances where keyboard interactions where listened to and moved them to useMagicKeys. While testing the shortcuts that open/reload the window I noticed the devtools where not opening on Linux and added a fix for that aswell. Please let me know what you think :]
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/VRCX#218