the-via / app

GNU General Public License v3.0
816 stars 186 forks source link

Add support for Alt/GUI swap and GUI toggle #128

Closed nikosdion closed 1 year ago

nikosdion commented 1 year ago

This PR adds support for the following keycodes to the ANY (advanced) key feature in VIA:

The former 3 are very useful to those of us who frequently switch between macOS and Linux / Windows.

The latter 3 are very useful to gamers who want to log the GUI (Windows) key when gaming.

wilba commented 1 year ago

Thanks. After #104 merges, we will merge a big refactor of keycodes so that all the keycodes defined by QMK will be available. QMK just changed the "canonical" names to be like QK_MAGIC_SWAP_ALT_GUI etc. so it makes sense to wait until after the current breaking change for QMK before doing any more keycode refactoring in VIA.

I'll keep this PR open as a reminder.

nikosdion commented 1 year ago

Awesome! Thank you very much for the update :)

SyntaxColoring commented 9 months ago

Thanks. After #104 merges, we will merge a big refactor of keycodes so that all the keycodes defined by QMK will be available. QMK just changed the "canonical" names to be like QK_MAGIC_SWAP_ALT_GUI etc. so it makes sense to wait until after the current breaking change for QMK before doing any more keycode refactoring in VIA.

104 is merged. Has that "big refactor of keycodes" happened to unblock this? This would be useful for me.

I tried manually entering the hex keycode 0x7016, but it looks like that gets erroneously translated to MT(,K_S)?