Skip to content

MOD_WIN as mod key #7

@PascalSenn

Description

@PascalSenn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions