Ancestors

Toot

Written by farcaller on 2025-01-12 at 19:54

This little trick costed me a move-one-word-to-the-left.

But here's what it does! If the keyboard is connected to a windows PC, and there's a pending press on the CMD (meaning it's held down but not reported to the OS yet), then don't report it and instead send HOME.

This allows CMD to behave like CMD on a mac, like CTRL on a PC, and also all CMD+XX keys work as CTRL+XX, unless it's CMD+LEFT, which is HOME. CMD+SHIFT+LEFT also works and become SHIFT+HOME.

Now I just need to do the same for CTRL to return CTRL+arrows.

[#]keychron #qmk

=> View attached media

=> More informations about this toot | More toots from farcaller@hdev.im

Descendants

Written by farcaller on 2025-01-12 at 19:56

Actually... on a mac moving between words is opt+arrows. Meaning I'll have to go and remap opt now.

Oh boy, I am sure excited to see how this all breaks paredit after I'm done.

=> More informations about this toot | More toots from farcaller@hdev.im

Written by farcaller on 2025-01-12 at 19:59

so if ctrl+arrows is actually home/end, then alt+arrows is word navigation, meaning I can remap win+arrows to ctrl+arrows and alt+arrows to.. home/end?..

What was I doing again?

=> More informations about this toot | More toots from farcaller@hdev.im

Written by farcaller on 2025-01-12 at 20:00

Wait no. win+arrows are home/end.

Alt+arrows are ctrl+arrows.

Ctrl+arrows are thus alt+arrows.

And I don't care about win+arrows being mapped anywhere.

=> More informations about this toot | More toots from farcaller@hdev.im

Written by farcaller on 2025-01-12 at 20:14

This also broke ctrl+clicking...

=> More informations about this toot | More toots from farcaller@hdev.im

Written by farcaller on 2025-01-12 at 20:47

Fixed ctrl+clicking, bricked the whole keyboard, huh.

Apparently KEY_OVERRIDE_ENABLE somehow breaks it all.

=> More informations about this toot | More toots from farcaller@hdev.im

Written by farcaller on 2025-01-12 at 21:07

And of course you can't just remap alt+arrows to ctrl+arrows because #qmk's remapper turns that into hold-alt, release-alt, hold-ctrl, left, release-ctrl.

Which, on windows, gets you into the menu bar because you just have tapped alt.

=> More informations about this toot | More toots from farcaller@hdev.im

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113817134660119158
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
276.640723 milliseconds
Gemini-to-HTML Time
1.159741 milliseconds

This content has been proxied by September (3851b).