From 88a087588973ef6bdbf358b5e37230168d4acbcd Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Tue, 24 May 2011 16:54:28 +0200 Subject: [PATCH] Move fake key MDSW to a different keycode value in xfree86 table. According to symbols/inet this keycode is used by two keyboard models: logitech_g15 and apple. Thus it should not be used for a fake keycode that gets assigned to a virtual modifier. Signed-off-by: Egbert Eich --- keycodes/xfree86 | 5 ++++- symbols/inet | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/keycodes/xfree86 b/keycodes/xfree86 index 821d1d9..0c91018 100644 --- a/keycodes/xfree86 +++ b/keycodes/xfree86 @@ -294,6 +294,9 @@ xkb_keycodes "basic" { // MacBooks generate 0x65 for the lower brightness key = 101; + // Required for apple/logitech_g15 keyboard + = 93; + // Codes generated for scancodes 0x59-0x5f, 0x62-0x76 = 157; // = 170; // @@ -352,7 +355,7 @@ xkb_keycodes "basic" { // Other codes never generated. The XFree86 ddx never generates // these codes. // Thus we can use them as fake keys - = 93; // + = 8; = 124; // = 125; // = 156; // diff --git a/symbols/inet b/symbols/inet index 7ffa886..b8f4d19 100644 --- a/symbols/inet +++ b/symbols/inet @@ -1217,7 +1217,7 @@ xkb_symbols "logitech_g15" { key { [ XF86LaunchC ] }; key { [ XF86WWW ] }; key { [ XF86LaunchE ] }; - key { [ XF86Launch1 ] }; + key { [ XF86Launch1 ] }; key { [ XF86Launch2 ] }; key { [ XF86Launch8 ] }; }; @@ -1728,7 +1728,7 @@ xkb_symbols "apple" { key { [ F14 ] }; key { [ F15 ] }; key { [ XF86Eject ] }; - key { [ F16 ] }; + key { [ F16 ] }; key { [ KP_Equal ] }; }; -- 2.7.4