this post was submitted on 07 Feb 2026
235 points (98.4% liked)

Linux

2136 readers
30 users here now

Everything about Linux

RULES

founded 2 years ago
MODERATORS
 

The new Micro~~soft~~slop copilot key always sends the following key-sequence when pressed down:

copilot key down: left-shift-down left-meta-down f23-down f23-up left-meta-up left-shift-up
copilot key up: <null>

This means there's no real key-up event when you release the key --> it can't be used (properly) as a modifier like ctrl or alt.

The workaround is to send a pretend key-up event after a time delay, but then you mustn't be too slow / fast when pressing a shortcut.

tldr: AI took a perfectly working modifier key from you.

--- edit ---
Some keyboards apparently do the "right" thing and don't send the whole sequence at once, you can remap those properly with keyd, see: https://github.com/rvaiya/keyd/issues/1025#issuecomment-2971556563 / https://github.com/rvaiya/keyd/issues/825

copilot key down: left-shift-down left-meta-down f23-down
copilot key up: f23-up left-meta-up left-shift-up

this will still break "left-shift + remapped copilot" and "left-meta + remapped copilot", but "RCtrl + letter key" can work as expected

you are viewing a single comment's thread
view the rest of the comments
[–] attero@discuss.tchncs.de 12 points 2 days ago (2 children)

Yes that's how I understood it. You can't fix a missing key-up signal on the OS/driver level.
This isn't Microsoft's first offense, btw: https://github.com/Rast1234/copilot_key_on_my_keyboard?tab=readme-ov-file#how-these-keys-work

[–] ramble81@lemmy.zip 7 points 2 days ago (1 children)

What about just intercepting F23 since nothing else really uses that? It looks like the key up is in there. Ignore the other modifiers.

[–] attero@discuss.tchncs.de 10 points 2 days ago* (last edited 2 days ago) (1 children)

afaik: the complete sequence is triggered when when the copilot key is pressed. You'd intercept the F23-up immediately --> no way to detect when the physical key is released.

[–] ramble81@lemmy.zip 5 points 2 days ago (1 children)

Oh now I’m following you. So at most you could remap it to an instant trigger. There’s no option for holding the key down.

[–] veniasilente@lemmy.dbzer0.com 2 points 2 days ago

In the least it would be usable as a key alongside other modifiers. But since those keyboard with copilot key tend to use it instead of R-Control, that's not much of an improvement.

[–] Goretantath@lemmy.world 2 points 2 days ago (1 children)

This seems to be on purpose to spite the people who want to remap it

[–] attero@discuss.tchncs.de 5 points 2 days ago* (last edited 2 days ago)

nah, they just ran out of options, because they already used the press all modifier keys (HYPER) hack for the physical office key(I'd have to check how it handles key-up events, but I'd bet it does it correctly / distinguishable --> I think I'm on to something https://www.makeuseof.com/remap-caps-lock-to-hyper-key-and-double-shortcuts/ )

Defining a new keycode would've gotten them in trouble with their hardware partners, because that would be hard and break backwards compatibility, so they took the easy / stupid way out to implement this awesome new button, just to appease the marketing / product department. (conjecture)

This is just a result of the banality of evil / incompetence.