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 5027 - Support for KaiOS LSK and RSK keys
Summary: Support for KaiOS LSK and RSK keys
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: ARM Other
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.14
Depends on:
Blocks:
 
Reported: 2020-03-12 21:17 UTC by pelya
Modified: 2020-04-07 18:30 UTC (History)
1 user (show)

See Also:


Attachments
Patch to support LSK and RSK keys (932 bytes, patch)
2020-03-12 21:17 UTC, pelya
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pelya 2020-03-12 21:17:24 UTC
Created attachment 4253 [details]
Patch to support LSK and RSK keys

Left Soft Key and Right Soft Key on KaiOS are context keys, that act as OK/Next/Menu and Cancel/Back/Clear depending on current dialog.

I did not find any adequate scancode for these actions, so they will generate 'browser forward' and 'browser back' scancodes.

They return scancode 0, so I have to perform strcmp() on key name in the code.

https://developer.kaiostech.com/design-guide/key
Comment 1 Ryan C. Gordon 2020-04-07 18:30:00 UTC
This patch is now https://hg.libsdl.org/SDL/rev/25edf3df6e51, thanks!

--ryan.