The new Microsoftslop copilot key always sends the following key-sequence when pressed:

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 remaps should work as expected

dell laptop with copilot key highlighted
you are viewing a single comment's thread
view the rest of the comments
[–] 0 points 9 months ago (2 children)

In Windows:

PowerToys -> Keyboard Manager -> New Shortcut -> press the Copilot key -> select "Ctrl (right)" from the drop-down. Job done.

Not sure why is it so hard on Linux that it generates such headlines.

  • source
  • hideshow 2 child comments
  • [–] [S] 9 points 9 months ago (1 child)

    this isn't properly remapped and depending on implementation of the key-up events by the keyboard vendor, requires an ugly time delay hack.

    qed. https://github.com/Rast1234/copilot_key_on_my_keyboard?tab=readme-ov-file#the-bad

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 9 months ago

    Tell me you haven't tried it without telling me...

    It works as a Ctrl key. It just works when remapped via PowerToys. I use it at work practically non-stop for Ctrl+Enter and Ctrl+Backspace.

  • source
  • parent