The new Microsoftslop 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

    • ulterno
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      I also want back the right super key that was replaced by the shitty fn key.
      You want to add functions? Good! Add another row on top of the F13 - F24 row and leave my F1 - F12 for what I want them.
      And yes, add a F13 to F24 column before wasting space on whatever multimedia keys you feel like adding.

    • drcobaltjedi
      link
      fedilink
      arrow-up
      17
      ·
      4 days ago

      A VM software I’ve used at work uses right Ctrl as the button to alert the host machine “Hey the user is addressing you now”.

      Want to take a wild guess who set up a VM on an old intern’s laptop after they returned to school and didn’t notice there wasn’t a right Ctrl key anymore?

  • Kaiserschmarrn@feddit.org
    link
    fedilink
    arrow-up
    28
    ·
    4 days ago

    My work laptop has this key and I remapped it with Raycast. Now, every time the key is being pressed, confetti flies across my screen. 🎉

  • ruby@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    20
    ·
    4 days ago

    as a right ctrl user, fuck you microsoft. a while back i had to get a new laptop since the last one was falling apart and having to decide based on which models don’t have a slopilot key so that i can use my system normally is so annoying. and unlike other specs you can’t filter by this, only hope that it’s mentioned in the product description somewhere.

  • Hadriscus@jlai.lu
    link
    fedilink
    arrow-up
    24
    arrow-down
    1
    ·
    4 days ago

    wtf ? a physical key on laptops that calls AI slop directly ? tell me it’s a dream, a vicious dream

  • ZoteTheMighty@lemmy.zip
    link
    fedilink
    arrow-up
    16
    ·
    4 days ago

    Couldn’t they have just remapped RightControl to open Copilot for the same effect without all the downsides?

    • pivot_root@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      4 days ago

      Pretty easily, even without introducing a new scan code. If the keyboard uses USB, Windows could have just matched against the vendor and product IDs. Or they could have set something in the USB descriptor.

      The only reasons I can think of for doing it this way are either out of laziness because it’s easier to make a global hotkey than change a driver, or to intentionally make the key useless as a modifier key.

      • ulterno
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 days ago

        easier to make a global hotkey than change a driver

        Mainly because AI doesn’t make good driver code.

  • ramble81@lemmy.zip
    link
    fedilink
    arrow-up
    17
    ·
    4 days ago

    So am i to understand that this sequence is built into the firmware of every keyboard with a copilot button? At that point you’d basically have to muck with the firmware. Is there any chance of altering the HID driver for the keyboard class to intercept that pattern?

      • ramble81@lemmy.zip
        link
        fedilink
        arrow-up
        9
        ·
        4 days ago

        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.deOP
          link
          fedilink
          arrow-up
          9
          ·
          4 days ago

          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
            link
            fedilink
            arrow-up
            4
            ·
            4 days ago

            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.

            • Venia Silente@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              2
              ·
              4 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.

        • attero@discuss.tchncs.deOP
          link
          fedilink
          arrow-up
          5
          ·
          edit-2
          4 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.

  • Alaknár@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 days ago

    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.

    • jol@discuss.tchncs.de
      link
      fedilink
      arrow-up
      8
      ·
      4 days ago

      I miss the menu key so much… It was the way I accessed the spelling corrector. Using a mouse for that is so cursed. The menu key had other uses too as the context is useful.

    • msage
      link
      fedilink
      arrow-up
      7
      ·
      4 days ago

      I like the Meta key.

      I use dwm, so that key is my lifeline.

      • Lvxferre [he/him]@mander.xyz
        link
        fedilink
        arrow-up
        4
        ·
        4 days ago

        I use it as a Compose key, but it’s just because it’s there; I also did something similar with the Scroll Lock key (I repurposed it to signal “turn it off” for certain autoclicking scripts, otherwise it would be completely useless). IMO keyboards are all fucking wrong anyway.

        • msage
          link
          fedilink
          arrow-up
          1
          ·
          3 days ago

          Capslock is remapped to ESC because I also use Neovim.

          • degen@midwest.social
            link
            fedilink
            English
            arrow-up
            1
            ·
            3 days ago

            ESC on tap, timeout to Super on hold 😎

            edit: keyd makes it as easy as capslock = overloadt2(meta, esc, 300)

            • msage
              link
              fedilink
              arrow-up
              1
              ·
              2 days ago

              Yuck, holding.

              Nah fam, no altered behaviour for the same key based on time.

              • degen@midwest.social
                link
                fedilink
                English
                arrow-up
                2
                ·
                2 days ago

                That’s just to not emit the keyup for ESC after pressing Super+key and letting go. The only thing affected by time is a reeeaally long ESC press not registering (the same as holding Super for a second).

                And rolling Super+key faster than the timeout resolves as a hold (Super) instead of tap (ESC), so there’s zero jank unless you need to hold ESC, and there’s still the real key.

    • schnurrito@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      ·
      4 days ago

      I’m not old enough to remember those times; but why would you miss that? It’s certainly useful to have a meta/super key for desktop environment shortcuts, and I use the menu key as a compose key, though admittedly without the menu key I would probably put that on the right control key. :D

  • Sparrow_1029
    link
    fedilink
    arrow-up
    5
    ·
    4 days ago

    I managed to remap the key on my asus vivobook (M5406WA) running fedora 42 to be used as the compose key