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

Summary: Keyboard layout not detected because of custom 'xmodmap' mappings.
Product: SDL Reporter: sdlbug
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: WAITING --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.2   
Hardware: x86_64   
OS: Linux   

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.