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 2277

Summary: Hardware keyboard control key sequences don't get reported
Product: SDL Reporter: chw
Component: eventsAssignee: Sylvain <sylvain.becker>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq
Version: 2.0.1   
Hardware: All   
OS: Android (All)   
Attachments: Patch for control key sequences
Second try
patch for control key on android

Description chw 2013-11-30 07:54:57 UTC
Created attachment 1479 [details]
Patch for control key sequences

Control key sequences from hardware keyboards (wireless/USB/bluetooth) get not properly reported on Android devices.
The attached patch uses the idea from http://stackoverflow.com/questions/12337117/capture-all-ctrl-under-android to make control key sequences appear as normal SDL_KEYDOWN events instead of cooked text input.
Comment 1 chw 2013-11-30 09:38:17 UTC
Created attachment 1480 [details]
Second try
Comment 2 Sam Lantinga 2017-08-15 04:33:21 UTC
Sylvain, is this something we want?
Comment 3 Sylvain 2017-08-28 16:18:39 UTC
Created attachment 2898 [details]
patch for control key on android

Hi ! 
Yes this is needed! Here's more or less an updated patch.
With also some common code and it makes software keyboards works like hardware keyboards.
Comment 4 Sam Lantinga 2017-08-28 16:55:37 UTC
Great, thanks!
https://hg.libsdl.org/SDL/rev/833ec9f10b80