Add the keypad equals and power keys to the qcode_to_number array. These keys
are used on a Macintosh keyboard.

Signed-off-by: John Arbuckle <programmingk...@gmail.com>

---
 ui/input-keymap.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ui/input-keymap.c b/ui/input-keymap.c
index fd2c09d..8cffe62 100644
--- a/ui/input-keymap.c
+++ b/ui/input-keymap.c
@@ -98,6 +98,7 @@ static const int qcode_to_number[] = {
     [Q_KEY_CODE_KP_ENTER] = 0x9c,
     [Q_KEY_CODE_KP_DECIMAL] = 0x53,
     [Q_KEY_CODE_SYSRQ] = 0x54,
+    [Q_KEY_CODE_KP_EQUALS] = 0x55,
 
     [Q_KEY_CODE_KP_0] = 0x52,
     [Q_KEY_CODE_KP_1] = 0x4f,
@@ -132,7 +133,7 @@ static const int qcode_to_number[] = {
 
     [Q_KEY_CODE_RO] = 0x73,
     [Q_KEY_CODE_KP_COMMA] = 0x7e,
-
+    [Q_KEY_CODE_POWER] = 0x5e,
     [Q_KEY_CODE__MAX] = 0,
 };
 
-- 
1.7.5.4



Reply via email to