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 2863 - Keyboard layout not detected because of custom 'xmodmap' mappings.
Summary: Keyboard layout not detected because of custom 'xmodmap' mappings.
Status: WAITING
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.2
Hardware: x86_64 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-02 14:03 UTC by sdlbug
Modified: 2016-10-07 23:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdlbug 2015-02-02 14:03:57 UTC
I have a slightly customized keyboard layout to make the tab key and some other weird placed keys on my laptop dead:

````
xmodmap -e "keycode 112 = Left"
xmodmap -e "keycode 117 = Right"
````

SDL2.0.2 completely fails to detect the keyboard layout and emits the following message: "Keyboard layout unknown, please send the following to the SDL mailing list"

The keyboard is fully unusable, not a single key is properly recognized.

My current workaround is to make a private build of SDL to force the generic X11 layout in X11_InitKeyboard()
Comment 1 Sam Lantinga 2016-10-07 23:40:16 UTC
Can you provide a patch that does that? That seems like reasonable default behavior if we can't detect the keyboard layout.