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

Summary: Invalid key release (instead of key press) event with 0x00 scancode
Product: SDL Reporter: levente.meszaros
Component: eventsAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: 1.2.15   
Hardware: x86_64   
OS: Linux   

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