From 6abb40220e583bbd953dc351399429dcd52e16c1 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Wed, 14 Oct 2009 00:08:04 +0800 Subject: [PATCH] fix the comma and period key --- .../xburst/files-2.6.31/drivers/char/defkeymap.c | 2 +- .../patches-2.6.31/500-modifier-keys.patch | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/target/linux/xburst/files-2.6.31/drivers/char/defkeymap.c b/target/linux/xburst/files-2.6.31/drivers/char/defkeymap.c index 00c713961..05e7251ca 100644 --- a/target/linux/xburst/files-2.6.31/drivers/char/defkeymap.c +++ b/target/linux/xburst/files-2.6.31/drivers/char/defkeymap.c @@ -47,7 +47,7 @@ static u_short shift_map[NR_KEYS] = { 0xfb4f, 0xfb50, 0xf07b, 0xf07d, 0xf201, 0xf702, 0xfb41, 0xfb53, 0xfb44, 0xfb46, 0xfb47, 0xfb48, 0xfb4a, 0xfb4b, 0xfb4c, 0xf03a, 0xf022, 0xf07e, 0xf700, 0xf07c, 0xfb5a, 0xfb58, 0xfb43, 0xfb56, - 0xfb42, 0xfb4e, 0xfb4d, 0xf03c, 0xf03e, 0xf03f, 0xf701, 0xf30c, + 0xfb42, 0xfb4e, 0xfb4d, 0xf03b, 0xf03a, 0xf03f, 0xf701, 0xf30c, 0xf703, 0xf020, 0xf207, 0xf10a, 0xf10b, 0xf10c, 0xf10d, 0xf10e, 0xf10f, 0xf110, 0xf111, 0xf112, 0xf113, 0xf213, 0xf203, 0xf307, 0xf308, 0xf309, 0xf30b, 0xf304, 0xf305, 0xf306, 0xf30a, 0xf301, diff --git a/target/linux/xburst/patches-2.6.31/500-modifier-keys.patch b/target/linux/xburst/patches-2.6.31/500-modifier-keys.patch index dd5639a6b..bf75ddf7b 100644 --- a/target/linux/xburst/patches-2.6.31/500-modifier-keys.patch +++ b/target/linux/xburst/patches-2.6.31/500-modifier-keys.patch @@ -1,3 +1,5 @@ +diff --git a/drivers/char/defkeymap.map b/drivers/char/defkeymap.map +index 50b30ca..e2ff31a 100644 --- a/drivers/char/defkeymap.map +++ b/drivers/char/defkeymap.map @@ -1,5 +1,5 @@ @@ -7,7 +9,7 @@ # Change the above line into # keymaps 0-2,4-6,8,12 # in case you want the entries -@@ -45,24 +45,38 @@ keycode 12 = minus underscor +@@ -45,24 +45,38 @@ keycode 12 = minus underscore backslash control keycode 12 = Control_underscore shift control keycode 12 = Control_underscore alt keycode 12 = Meta_minus @@ -48,7 +50,7 @@ keycode 26 = bracketleft braceleft control keycode 26 = Escape alt keycode 26 = Meta_bracketleft -@@ -73,17 +87,26 @@ keycode 28 = Return +@@ -73,17 +87,26 @@ keycode 28 = Return alt keycode 28 = Meta_Control_m keycode 29 = Control keycode 30 = a @@ -78,7 +80,7 @@ keycode 39 = semicolon colon alt keycode 39 = Meta_semicolon keycode 40 = apostrophe quotedbl -@@ -97,58 +120,65 @@ keycode 43 = backslash bar +@@ -97,58 +120,65 @@ keycode 43 = backslash bar control keycode 43 = Control_backslash alt keycode 43 = Meta_backslash keycode 44 = z @@ -94,12 +96,14 @@ + altgr keycode 49 = less + ctrlr keycode 49 = one keycode 50 = m +-keycode 51 = comma less +- alt keycode 51 = Meta_comma +-keycode 52 = period greater + altgr keycode 50 = greater + ctrlr keycode 50 = two - keycode 51 = comma less -- alt keycode 51 = Meta_comma ++keycode 51 = comma semicolon + altgr keycode 51 = apostrophe - keycode 52 = period greater ++keycode 52 = period colon control keycode 52 = Compose - alt keycode 52 = Meta_period + altgr keycode 52 = quotedbl