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 - Optionally disable the Windows key when capturing keyboard and enabled?
Summary: Optionally disable the Windows key when capturing keyboard and enabled?
Status: WAITING
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.9
Hardware: x86 Windows 10
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-25 08:26 UTC by superfury
Modified: 2019-07-30 17:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.