Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard Manager: allow remapping Power button #4198

Closed
mlocati opened this issue Jun 8, 2020 · 5 comments
Closed

Keyboard Manager: allow remapping Power button #4198

mlocati opened this issue Jun 8, 2020 · 5 comments
Labels
Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager

Comments

@mlocati
Copy link

mlocati commented Jun 8, 2020

Summary of the new feature/enhancement

I have a really ugly keyboard, without an End key, but with a power off key:

Keyboard

I tried to use the keyboard manager to remap that key to End. But when I press that button with the following dialog open, Windows shuts down...

PowerToys-KeyboardManager

I also tried to configure Windows to do nothing when the power button is pressed (within the Windows Control Panel), but in this case the above dialog doesn't intercept it and nothing happens.

Is this an impossible mission?

Proposed technical implementation details (optional)

IDK 😉

@crutkas
Copy link
Member

crutkas commented Jun 8, 2020

This may be a hardware key like Fn key. It may also vary keyboard by keyboard.

@crutkas crutkas added the Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager label Jun 8, 2020
@crutkas
Copy link
Member

crutkas commented Jun 8, 2020

@arjunbalgovind assuming we can't remap this?

@arjunbalgovind
Copy link
Contributor

arjunbalgovind commented Jun 8, 2020

Yes, the Power key does not send a virtual keyboard message and it doesn't have a virtual key code either so it isn't something that we can remap. That said, it might be possible with SharpKeys since it is registry-based, however based on this issue on the SharpKeys repo, the power key is hardware dependent and may not work on all keyboards, so you could give that a try.

@Jay-o-Way
Copy link
Collaborator

Often times the power button has a separate cable going to the motherboard, so I think ramapping will be impossible for most of the times. And that's still said careful.

@saahmedm
Copy link
Contributor

saahmedm commented Jun 11, 2020

Not possible to remap hardware-level keys. (Fn key is another example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager
Projects
None yet
Development

No branches or pull requests

5 participants