We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4732

Summary: Optionally disable the Windows key when capturing keyboard and enabled?
Product: SDL Reporter: superfury
Component: eventsAssignee: Sam Lantinga <slouken>
Status: WAITING --- QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: 2.0.9   
Hardware: x86   
OS: Windows 10   

Description superfury 2019-07-25 08:26:40 UTC
Is it possible to capture the Windows key in SDL when capturing the keyboard using a hint?

I'm handling the LGUI and RGUI keys in my application using a matrix of keys, but they won't show up because Windows handles them internally and they don't reach the app(as well as taking focus from the app because it's handling it through explorer.exe).

Perhaps making it optional to enable and disable the windows key capturing?

I've found this: https://programmersheaven.com/discussion/362851/using-keyboard-hooks-how-do-i-disable-the-windows-key

As well as: http://www.cplusplus.com/forum/general/217945/

Both seem to implement the same method, handling the windows events through a keyboard hook?
Comment 1 Sam Lantinga 2019-07-30 17:35:13 UTC
Yes, you're welcome to submit a patch that does this.