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 619

Summary: Inconsistency between windib and directx driver with "system key" behaviour
Product: SDL Reporter: Tim Angus <tim>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: alistair, tjw
Version: HG 1.2   
Hardware: x86   
OS: Windows (All)   
Attachments: Patch that disables "system key" handling with the directx driver
Same as previous patch, but applies cleanly on recent revisions

Description Tim Angus 2008-08-31 03:38:36 UTC
When pressing "system keys" e.g. ALT+F4 etc., the default for the windib driver is to ignore them completely, whereas with the directx driver they're handled (badly as it turns out).

As the windib driver is the default, I assume its behaviour is considered correct, so the following patch makes the directx driver the same in this regard.
Comment 1 Tim Angus 2008-08-31 03:39:43 UTC
Created attachment 270 [details]
Patch that disables "system key" handling with the directx driver

The patch.
Comment 2 Tim Angus 2008-08-31 13:14:48 UTC
*** Bug 596 has been marked as a duplicate of this bug. ***
Comment 3 Gregory Smith 2008-12-14 19:21:35 UTC
Hmm, installing this patch results in the app receiving a tab key event when alt-tabbing out. This doesn't happen, as far as I can tell, with windib or pre-patch dx5.
Comment 4 Tim Angus 2009-04-02 08:33:42 UTC
Created attachment 315 [details]
Same as previous patch, but applies cleanly on recent revisions
Comment 5 Sam Lantinga 2009-04-13 01:45:15 UTC
This was committed with revision 4485.

Thanks!