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 - Hardware keyboard control key sequences don't get reported
Summary: Hardware keyboard control key sequences don't get reported
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.1
Hardware: All Android (All)
: P2 normal
Assignee: Sylvain
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-30 07:54 UTC by chw
Modified: 2017-08-28 16:55 UTC (History)
1 user (show)

See Also:


Attachments
Patch for control key sequences (1001 bytes, patch)
2013-11-30 07:54 UTC, chw
Details | Diff
Second try (1.50 KB, patch)
2013-11-30 09:38 UTC, chw
Details | Diff
patch for control key on android (2.68 KB, patch)
2017-08-28 16:18 UTC, Sylvain
Details | Diff

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