aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-handheld-4.4/locomo/0004-input-locomokbd-differentiate-between-two-Enter-keys.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-handheld-4.4/locomo/0004-input-locomokbd-differentiate-between-two-Enter-keys.patch')
-rw-r--r--recipes-kernel/linux/linux-handheld-4.4/locomo/0004-input-locomokbd-differentiate-between-two-Enter-keys.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-handheld-4.4/locomo/0004-input-locomokbd-differentiate-between-two-Enter-keys.patch b/recipes-kernel/linux/linux-handheld-4.4/locomo/0004-input-locomokbd-differentiate-between-two-Enter-keys.patch
new file mode 100644
index 0000000..193ce89
--- /dev/null
+++ b/recipes-kernel/linux/linux-handheld-4.4/locomo/0004-input-locomokbd-differentiate-between-two-Enter-keys.patch
@@ -0,0 +1,30 @@
+From c3bd3a7c6cb7089aa6682b0803402d30f4993cab Mon Sep 17 00:00:00 2001
+From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
+Date: Mon, 25 May 2015 14:04:16 +0300
+Subject: [PATCH 04/44] input: locomokbd: differentiate between two Enter keys
+
+There are two Enter keys on collie/poodle keyboards. Make one of them to
+generate KEY_KPENTER rather than just KEY_ENTER.
+
+Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
+Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
+---
+ drivers/input/keyboard/locomokbd.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/input/keyboard/locomokbd.c b/drivers/input/keyboard/locomokbd.c
+index 9742c79..7645053 100644
+--- a/drivers/input/keyboard/locomokbd.c
++++ b/drivers/input/keyboard/locomokbd.c
+@@ -50,7 +50,7 @@ locomokbd_keycode[LOCOMOKBD_NUMKEYS] = {
+ 0, 0, 0, KEY_CENTER, 0, KEY_MAIL, 0, 0, 0, 0, /* 30 - 39 */
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, KEY_RIGHT, /* 40 - 49 */
+ KEY_UP, KEY_LEFT, 0, 0, KEY_P, 0, KEY_O, KEY_I, KEY_Y, KEY_T, /* 50 - 59 */
+- KEY_E, KEY_W, 0, 0, 0, 0, KEY_DOWN, KEY_ENTER, 0, 0, /* 60 - 69 */
++ KEY_E, KEY_W, 0, 0, 0, 0, KEY_DOWN, KEY_KPENTER, 0, 0, /* 60 - 69 */
+ KEY_BACKSPACE, 0, KEY_L, KEY_U, KEY_H, KEY_R, KEY_D, KEY_Q, 0, 0, /* 70 - 79 */
+ 0, 0, 0, 0, 0, 0, KEY_ENTER, KEY_RIGHTSHIFT, KEY_K, KEY_J, /* 80 - 89 */
+ KEY_G, KEY_F, KEY_X, KEY_S, 0, 0, 0, 0, 0, 0, /* 90 - 99 */
+--
+1.9.1
+