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 3155 - Invalid key release (instead of key press) event with 0x00 scancode
Summary: Invalid key release (instead of key press) event with 0x00 scancode
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 1.2.15
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-16 08:12 UTC by levente.meszaros
Modified: 2018-07-31 10:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description levente.meszaros 2015-10-16 08:12:43 UTC
Ubuntu 15.04, x86-64, libSDL1.2.15-10

Linux valarmorghulis 3.19.0-26-generic #28-Ubuntu SMP Tue Aug 11 14:16:32 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

ibus turned off

I compiled the example 3-11 at

https://www.libsdl.org/release/SDL-1.2.15/docs/html/guideinputkeyboard.html

then I run the example and pressed SHITF + A, and this is what I get:

Press:- Scancode: 0x32, Name: left shift, Unicode: ? (0x0000)
Modifers: None
Release:- Scancode: 0x00, Name: left shift
Modifers: None
Release:- Scancode: 0x26, Name: a
Modifers: LSHIFT SHIFT 
Release:- Scancode: 0x32, Name: left shift
Modifers: None

The first release is wrong, it should be a press with the correct scancode, e.g.:

Press:- Scancode: 0x26, Name: a
Modifers: LSHIFT SHIFT