| Summary: | SDL 2.0.4 does not allow activating system menu via keyboard | ||
|---|---|---|---|
| Product: | SDL | Reporter: | winterknight |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | WAITING --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.4 | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
| See Also: | https://bugzilla.libsdl.org/show_bug.cgi?id=2669 | ||
| Attachments: | Patch allows users to activate the system menu via keyboard. | ||
|
Description
winterknight
2016-02-29 03:31:56 UTC
We may need to add a hint for this. Games which use ALT as control (e.g. show HUD state, etc.) may want to be able to use space for jumping at the same time. More desktop style applications may be able to want to get to the system menu. What is your use case here? The use case is just ordinary window management. Moving the window, resizing, maximizing, etc. I discovered this bug when I was using a Windows computer with a low resolution screen, and the SDL2 program I was looking at had a window that was too big. The title bar was beyond the top of the screen, so I couldn't reach it with the mouse. Then I found out Alt-Space did not work as expected, and I could not move or resize the window at all. Adding a hint might be a good idea. Would the same hint also disable Alt-Tab? Maybe the game wants to use Tab for firing and F4 to change the HUD. Right now Alt-Space works fine in Linux, and I assume Mac, since hg commit 9624 was Windows specific and not intended to disable anything other than Windows's excessive beeping. Introducing this bug to Windows was an accident. If you do add a hint, please make the default be to allow window manipulation via Alt-*, because those controls work fine in nearly every program, including SDL programs before 2.0.4, and users expect it to work. Also, the similar hint that's been available since SDL 2.0.4, SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4, allows Alt-F4 to work by default. |