Skip to contentSkip to conversation

2.5.29-keyboard

PATCH New Russell King 1 participant 1 message Aug 30, 2002 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.29-keyboard

This patch appears not to be in 2.5.32, but applies cleanly.

Some ARM-based machines have an extra key (#) on their numeric keypad that produces the ESC [ S or ESC O S escape sequences. This patch adds Linux support for the key.

 drivers/char/keyboard.c |    4 ++--
 1 files changed, 2 insertions, 2 deletions
drivers/char/keyboard.c +2 -2
diff -urN orig/drivers/char/keyboard.c linux/drivers/char/keyboard.c
@@ -552,8 +552,8 @@
 
 static void k_pad(struct vc_data *vc, unsigned char value, char up_flag)
 {
-	static const char *pad_chars = "0123456789+-*/\015,.?()";
-	static const char *app_map = "pqrstuvwxylSRQMnnmPQ";
+	static const char *pad_chars = "0123456789+-*/\015,.?()#";
+	static const char *app_map = "pqrstuvwxylSRQMnnmPQS";
 
 	if (up_flag)
 		return;		/* no action, if this is a key release */