Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAGIC_TOGGLE_GUI is not supported #1748

Open
routerf opened this issue Mar 12, 2023 · 3 comments
Open

MAGIC_TOGGLE_GUI is not supported #1748

routerf opened this issue Mar 12, 2023 · 3 comments

Comments

@routerf
Copy link

routerf commented Mar 12, 2023

Hi there,

the QMK keycode MAGIC_TOGGLE_GUI (or the short way GUI_TOG) does not work wit VIA, although it's featured in the QMK documentation. On this page (https://docs.qmk.fm/#/keycodes_magic) it says "To use the keycodes, assign them to your keymap as you would any other keycode."

Unfortunately, I can't seem to set that up in VIA. Not using a macro, not using the ANY key. VIA always tells me that this is not a valid keycode. At the same time, it even links me to a help page in the Via Desktop app that contains exactly this keycode.

I use the latest VIA version (3.0.0) for Desktop. My keyboard is a Keychron V3 (ISO version with Knob, if that's relevant).

@grisevg
Copy link

grisevg commented Apr 19, 2023

This would be very useful, please could you add it. WinLock is really useful for gaming, and many other keyboards and keyboard firmwares do provide it.

@routerf
Copy link
Author

routerf commented Nov 12, 2023

Just in case someone might find it useful: There's a way for Keychron models using QMK/VIA. See this blog post: https://www.keychron.com/blogs/archived/how-to-lock-the-windows-key-on-a-keychron-qmk-via-keyboard

@rjerue
Copy link

rjerue commented Jun 22, 2024

I often times switch between a mac and a PC with my Maja. Decided to look into this. Saw Via is a big react app and I am good at react so yolo.

Good news, I figured this out! Via does support it, your keyboard might not though.

First off, you need to use a hex code to see if its supported. Hex codes are defined in QMK here to swap. I wanted to swap the windows key and the ctrl key.

V11+ supports it https://github.com/search?q=repo%3Athe-via%2Fapp%200x7017&type=code

I had no idea what "protocol" my keeb supported. I actually built the app and ran it and saw it was on 9. Easy way to see is to just drop a console.log(version) into https://github.com/the-via/app/blob/main/src/utils/key-to-byte/dictionary-store.ts after line 5. Though after the fact, I found it is also dumped into a console.log statement once your keeb is loaded

image

I needed up update my firmware with QMK toolkit.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants