Bug#432613: xkb-data: virtual keys missing from evdev keycodes, breaks modifiers
On Thu, Jul 12, 2007 at 12:30:08AM +0200, Mohammed Adnène Trojette wrote:
> On Wed, Jul 11, 2007, Yann Vernier wrote:
> > to codes that never occur. I added similar lines to evdev:
> > // Fake keycodes for virtual keys
> > <MDSW> = 241;
> > <LVL3> = 242;
> > <ALT> = 243;
> > <META> = 244;
> > <SUPR> = 245;
> > <HYPR> = 246;
> > And now my bindings do work. In linux/input.h keycode 240 is called
> > unknown and the range 241-255 are not defined.
>
> Please could you prepare a patch ready to be applied? It would be really
> kind from you. I'll forward it upstream and try to prepare an upload
> this week-end.
Okay, attaching something.
--- /usr/share/X11/xkb/keycodes/evdev.orig 2007-07-24 03:01:21.000000000 +0200
+++ /usr/share/X11/xkb/keycodes/evdev 2007-07-24 03:02:19.000000000 +0200
@@ -269,6 +269,14 @@
<I243> = 243; // #define KEY_DOCUMENTS 235
<I244> = 244; // #define KEY_BATTERY 236
+ // Fake keycodes for virtual keys
+ <MDSW> = 241;
+ <LVL3> = 242;
+ <ALT> = 243;
+ <META> = 244;
+ <SUPR> = 245;
+ <HYPR> = 246;
+
indicator 1 = "Caps Lock";
indicator 2 = "Num Lock";
indicator 3 = "Scroll Lock";
Reply to: