PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Key remapper doesn't recognize Office key

Open clairernovotny opened this issue 4 years ago • 32 comments

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

clairernovotny avatar May 19 '20 18:05 clairernovotny

@clairernovotny I don't have an office key on my keyboard, but I believe that it internally does a shortcut like Win+Ctrl+Alt+Shift or something like that. Out of curiosity can you open Remap a shortcut and click Type Shortcut and try pressing the Office key while that window is up. In theory. that should display what the key actually does, and would allow us to support it in the future :)

arjunbalgovind avatar May 19 '20 19:05 arjunbalgovind

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

Then this

image

clairernovotny avatar May 19 '20 20:05 clairernovotny

FWIW, the Emoji key maps to this:

image

So that has four modifiers and space.

clairernovotny avatar May 19 '20 20:05 clairernovotny

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.

clairernovotny avatar May 19 '20 20:05 clairernovotny

Thanks for the screenshots, that helps a ton! I think we might have to support remapping a shortcut to a key before we can get that in, but we do plan to have that for the v1 release, so we should be supporting this too! I honestly didn't even know there was an Emoji key 😂

arjunbalgovind avatar May 19 '20 20:05 arjunbalgovind

Here they are on the keyboard image

The dust that shows up 😂

clairernovotny avatar May 19 '20 20:05 clairernovotny

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

Like @arjunbalgovind mentioned, we're hoping to support these use cases for our v1. Will make issues to track shortcut to key mapping and shortcuts with >2 modifiers.

saahmedm avatar May 19 '20 20:05 saahmedm

seeing if i can't get @arjunbalgovind that keyboard for testing :)

crutkas avatar May 19 '20 20:05 crutkas

@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

scrthq avatar May 20 '20 21:05 scrthq

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

Like @arjunbalgovind mentioned, we're hoping to support these use cases for our v1. Will make issues to track shortcut to key mapping and shortcuts with >2 modifiers.

or Windows Key + ; 🤷

corbob avatar May 20 '20 22:05 corbob

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

TheSimArchitect avatar Aug 06 '20 18:08 TheSimArchitect

I notice several issues that would be resolved by allowing more modifiers than 2.

RonnySvedman avatar Feb 10 '21 23:02 RonnySvedman

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.

5inf avatar Mar 04 '21 09:03 5inf

Is this still on the board to be done?

Jaans avatar Feb 08 '22 13:02 Jaans

@Jaans: Not on our roadmap yet, but community pull requests are welcome, simply let us know if you (or anyone) would like to contribute to PowerToys!

franky920920 avatar Feb 09 '22 13:02 franky920920

This may be extended with the triple modifier branch but our UX needs to be extended is the blocker to ship

crutkas avatar Feb 10 '22 02:02 crutkas

https://github.com/microsoft/PowerToys/tree/dev/crutkas/tripleModifier

crutkas avatar Feb 10 '22 02:02 crutkas

I think closing of https://github.com/microsoft/PowerToys/issues/17213 as duplicate of https://github.com/microsoft/PowerToys/issues/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

iksi4prs avatar Jun 23 '22 14:06 iksi4prs

it still doesnt work on V 0.59.1 , the smiley key reads as space even though its hyperkey + space

image

jhoelzel avatar Jun 23 '22 14:06 jhoelzel

@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.

jaimecbernardo avatar Jun 28 '22 10:06 jaimecbernardo

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 avatar Jun 28 '22 10:06 jaimecbernardo

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.

iksi4prs avatar Jun 28 '22 11:06 iksi4prs

Does this help? Remap Office Key Also this HowToGeek link that points to the above Github thing: Office Key I opened a new issue on the above Github link about the possibility to do this with the Star key on the Natural Keyboard 4000. Seems like something like this could be integrated into PowerToys. Now if only I new what the "Hyper" key sequence is for the Star key.

JamieRCHI avatar Jun 29 '22 00:06 JamieRCHI

Is this still an issue?

I don't know. I don't have a keyboard with that key at this moment.

TheSimArchitect avatar Aug 10 '22 12:08 TheSimArchitect

I'll have a look. I just updated to the latest version. Still not working with version 0.61.1

JamieRCHI avatar Aug 10 '22 17:08 JamieRCHI

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

Jaans avatar Aug 11 '22 03:08 Jaans

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

Jay-o-Way avatar Aug 11 '22 06:08 Jay-o-Way

@jay-o-way, that isn't it I think. This is the remap involves the same key due to how Office key works ... we have a shortcut that involves the same key, namely here Win-Left. @jaimecbernardo as FYI

crutkas avatar Aug 25 '22 16:08 crutkas

@JamieRCHI what are you trying to remap your office key to?

crutkas avatar Aug 25 '22 16:08 crutkas

I want to remap the Star Key on the Natural 4000 to any program or macro.

And the Application key to any program or macro. (Never ever used the Application key.) Might be nice to duplicate the Windows Key here.

Similar to how the Mouse and Keyboard center allows me to remap the Browser Back and Browser forward buttons.

JamieRCHI avatar Aug 25 '22 20:08 JamieRCHI