← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 420197] [NEW] X keyboard layouts claim nonexistent key

 

Public bug reported:

Binary package hint: xkeyboard-config

All of the en_US keyboard layouts provided by Ubuntu incorrectly claim
that the "less than, greater than" key exists when it is not actually
present on most en_US keyboards.  My keyboard, for example, is detected
as a 105-key generic keyboard, with the accompanying layout.  This
layout claims that the "less than, greater than" key exists.

This is mostly harmless, save for one X11 call, which gives the wrong
output due to this nonexistent key.  XKeysymToKeycode returns the
keycode for a given keyboard symbol.  Since the actual "less than"
symbol is on the comma key, we would expect XKeysymToKeycode to return
the keycode for the comma key when given the "less than" keysym.

Instead, due to the above "phantom key," XKeysymToKeycode returns the
keycode for the "less than, greater than" key which is reported by the
keyboard layout, but doesn't actually exist.

The keyboard layouts provided by Ubuntu should not report that this key
exists if it doesn't.  I have personally never seen this key on an
English keyboard, and I think it makes sense to assume it's not there,
if a means of detection doesn't exist.

Attached is a simple C program to demonstrate the error.

** Affects: xkeyboard-config (Ubuntu)
     Importance: Undecided
         Status: New

-- 
X keyboard layouts claim nonexistent key
https://bugs.launchpad.net/bugs/420197
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in ubuntu.



Follow ups

References