App switch keystroke function for alt-tab command-tab
Add a custom keystroke function, FN_ALTTAB (like how Via has FN_MO13 and FN_MO23) for alt-tab (or for Mac, command-tab FN_CMDTAB).
Ideally, tapping this key would trigger Alt+Tab.
Because of the behaviour of holding Alt to hold the OS app switcher panel open, if an MO or TT key is being held, releasing that layer should be the point when Alt is released.
If this is bound to a naked key or rotary encoder, start a timeout before alt is released, or perhaps release alt before the next keystroke is sent. Every time the function is called, the timeout is reset. The timeout could be 1000ms.
EG:
FN_ALTTAB is assigned to a keymap spot on layer 1.
MO(1)
...
FN_ALTTAB --> hold LAlt, send KC_TAB
...
FN_ALTTAB ---> (continue hold LAlt) send KC_TAB
...
FN_ALTTAB ---> (continue hold LAlt) send KC_TAB
...
any other event, or release MO(1), or timeout ---> release LAlt, clear timeout
see: https://github.com/qmk/qmk_firmware/blob/master/keyboards/dz60/keymaps/_bonfire/not-in-use/super-alt-tab.c
Comments: 2
-
24 Nov, '22
TchakizeraIt is quite simple to make it work using Custom Keycodes. If you can customize and build your own firmware.
1
Just add the code from https://github.com/qmk/qmk_firmware/blob/master/keyboards/dz60/keymaps/_bonfire/not-in-use/super-alt-tab.c into your keymap.c, and follow the instructions from https://get.vial.today/manual/custom_keycode.html to have a nicely named key enabled in Vial.
Anyway, it would be even better if such feature was available directly from Vial, without the need to edit, build and flash a custom firmware into the keyboard. -
22 Sep
counterclockwise121110987654321I would love this feature integrated for convenience! I am new to working on open source projects. Can anyone point me to how to get started on this?