PowerToys: Key remapper doesn't recognize Office key

Environment

Windows build number: 10.0.19041.264
PowerToys version: 0.18
PowerToy module for which you are reporting the bug (if applicable): Remap Keyboard

Steps to reproduce

Try to add a key mapping for the Office key (on the new Ergonomic 4000 keyboard). The key isn’t detected correctly

Expected behavior

I expect the Office key to be detected correctly so I can remap it.

Actual behavior

It’s either detected as Space or Win (Left)

Screenshots

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 13
  • Comments: 34 (14 by maintainers)

Most upvoted comments

I’ll add that people have complained loudly about not being able to remap the Office key using the Microsoft keyboard software, so this would be a big win.

I’m glad we’ve made it to the point where we’re not limited to 2 modifiers, but either there should be a special exception for the Hyper combo, or remapping modifiers should be allowed. It’s very silly that Windows doesn’t support disabling the shortcuts natively but it would be the perfect redemption moment for PowerToys to be able to given it’s tailored to power users

Here they are on the keyboard image

The dust that shows up 😂

Yes, while there’s been some changes to capture the keys, it fails to map them.

Here’s screenshots of attempting to map the “Office” hyper-key: image

Which gives this message: image

For anyone still following this issue: Because this feature was not implemented in PowerToys, I’ve ended developing my own app using keyboard hooks. Unfortunately, Hyper/Meh didn’t work well, because some apps “miss behave”, and also execute their actions. Eg, if you define “Hyper = Left Control + Shift + Alt + Winkey”, and then use “Hyper” + “A” to do something, other apps, which are un-ware of this “Hyper” option, will also do their thing own action “Ctrl+Alt+A”, etc (eg open dialog, etc), so you end with 2 actions, one from the “Hyper” and one from the “partly Hyper”.

My solution was to map “Left WinKey” to F17 (just something no one uses), and then use F17 as modifier. So WinKey generates key event of F17, and in my “end-user app” I treat F17 as modifier, in addition to existing modifiers. It works (99% of the time…) But I don’t think it will be supported/added in PowerToys, because you need an special code to treat standard keys (eg F17) as modifiers. I’m still trying new ideas on my spare time, if you have any ideas/suggestions, please post in this thread.

Why is it still not possible to remap the hyper modifier combo?

Okay well that message is to be expected. For a shortcut you need at least one modifier key and at least one “normal” key.

seeing if i can’t get @arjunbalgovind that keyboard for testing 😃

I think closing of #17213 as duplicate of #3194 is not correct. 17213 is about a mapping where the target contains just modifiers withOUT a character. eg I can map “right WIN” to “ALT+CTRL+SHIFT”, and then for all shortcuts on system that contains above, instead clicking 3 modifiers keys every time, I need to click only one key, As my check, its not possible on V 0.59.1

#17213 was about being able to map “WIN+CTRL+ALT + H” from what I read. That’s possible now.

@jaimecbernardo

it was about adding hyper/meh keys (this should answer also your other question). its not about mapping “WIN+CTRL+ALT + H” to “some key”, its about mapping "“WIN+CTRL+ALT” (only modifiers) as target.

example of usage: since “WIN+CTRL+ALT+SHIFT” is rarely used, because hard to click. u can add an hyper key, eg map “CAPS” to “WIN+CTRL+ALT+SHIFT”. and then u can add many custom shortcuts (WIN+CTRL+ALT+SHIFT) in any app, without overriding/deleting existing shortcuts, and the bonus is u need only one key (CAPS) to run the shortcuts.

This is quite a common “trick”, in keyboards the are programmable.

@jhoelzel What’s an hyper key? If it’s a combination of keys underneath, you’d need to use the Edit shortcut instead of Edit Key to catch it.

I found this issue while trying to deactivate the office key on one of my Microsoft keyboards (with the help of PowerToys).

Implementing this would be really great, because

  1. on any recent Microsoft keyboard with “Office key” this key is sending the “hyper-key” modifier combination (Win+Ctrl+Alt+Shift) without another modifier key (why Microsoft?), and
  2. the hyper-key combination alone (another why Microsoft?) being used in Windows 10 (since May 2019 update, registered via explorer.exe) to start MS Office, or - if there is no MS Office to start - leads you to an MS Office advertising page.

So if you have an older keyboard with a dedicated hyper-key, pressing this key will try to start of MS Office, too.

By the way there are more hyper-key combinations included in Windows 10. Hyper-key (or Office-key)+L leads you to Linkedin, Office+T to Teams, Office+Y opens Yammer.com, and so on, without any way to configure it.

Some more background and how messed up this is can be found here: https://www.howtogeek.com/445318/how-to-remap-the-office-key-on-your-keyboard/

The Microsoft Mouse and Keyboard Center (https://support.microsoft.com/en-us/topic/mouse-and-keyboard-center-download-f5b10905-7887-eedb-2f1c-d0737a36a3b2) allows to configure several keys on the keyboard, but not the office key (again why Microsoft?).

This is great feedback, thanks claire! never thought I’d need an emoji key LOL. Curious why the Emoji key doesn’t map to Windows Key + . though

I guess that’s another one of these “why Microsoft?”-moments.

The best solution, but outside of the scope of the of the PowerToys, would probably be to change the behaviour of what a Microsoft keyboard sends when the office key is pressed, e.g. sending not the hyper-key combination alone but some other combination (hyper+O maybe), or even better allow to reconfigure what that key sends (which would fit well into the already existing Mouse and Keyboard Center). Maybe someone internally at Microsoft could forward this, as I don’t see any chance for such an request to succeed from the outside.

Any chance this will be happening on a future update (ability to map more keyboard combinations including the new Office key)?

@crutkas - You wouldn’t need that exact keyboard, per se. Any keyboard capable of sending that modifier combo replicates the behavior, including mechanical keyboards that come with a Hyper modifier key built-in (Hyper is just sending the same modifier combo). When Windows 10 was updated to treat that modifier combo as the Office launcher, it was a world of fun for the existing macros I have where that combo is used heavily

Here’s what I see when I push the office key. image Four modifiers and no key.

Then this

image