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

MOD_WIN as mod key #7

Open
PascalSenn opened this issue May 15, 2020 · 5 comments
Open

MOD_WIN as mod key #7

PascalSenn opened this issue May 15, 2020 · 5 comments

Comments

@PascalSenn
Copy link
Contributor

on my setup the ALT key is already used a lot for in process actions like e.g. changing tabs. I would love to use the Windows key but apparently this is not that easy:

Value Meaning
MOD_WIN0x0008 Either WINDOWS key was held down. These keys are labeled with the Windows logo. Hotkeys that involve the Windows key are reserved for use by the operating system.

https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-hotkey

There are work arounds but they seem all to not really work.

https://stackoverflow.com/questions/20082160/how-can-i-capture-a-global-win-hotkey

I've seen microsoft/powertoys doing this before in their keyboard manager:
https://github.com/microsoft/PowerToys/blob/1de93be0f0ca5ccb033397fa9a61f11ea8627a62/src/modules/keyboardmanager/common/Shortcut.cpp#L8

@bert1337
Copy link

Did you have any luck doing this? I've been trying to do the same for a couple of days but nothing i do seems to work ..

@bert1337
Copy link

bert1337 commented Feb 2, 2021

I was able to add this functionality in my fork, using SetWindowsHookEx.

@prabirshrestha
Copy link
Owner

Feel free to send a PR

@bert1337
Copy link

bert1337 commented Feb 3, 2021

After some testing i found out that there are some problems with my edits, and the change focus function doesnt seem to work right now unfortunately

@bert1337
Copy link

bert1337 commented Feb 6, 2021

Fixed the problem and PR made

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants