From 7d79a01ed2e3ac3b070e0949a6da5015fa8d1685 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Boric Date: Wed, 30 Aug 2017 21:18:09 +0200 Subject: [PATCH] [ion/simulator] Improve key mapping --- ion/src/simulator/keyboard/fltkkbd.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ion/src/simulator/keyboard/fltkkbd.cpp b/ion/src/simulator/keyboard/fltkkbd.cpp index 6abaec5b6..7eb4e516b 100644 --- a/ion/src/simulator/keyboard/fltkkbd.cpp +++ b/ion/src/simulator/keyboard/fltkkbd.cpp @@ -17,15 +17,15 @@ static const char* kCharForKey[Ion::Keyboard::NumberOfKeys] = { }; static const int kShortcutForKey[Ion::Keyboard::NumberOfKeys] = { - FL_Left, FL_Up, FL_Down, FL_Right, FL_Enter, FL_BackSpace, - FL_Escape, 0, 0, 0, 0, 0, - 0, 0, 'x', 0, 0, 0, + FL_Left, FL_Up, FL_Down, FL_Right, FL_Enter, FL_Escape, + FL_Home, 0, 0, 0, 0, 0, + 0, 0, 'x', 0, 0, FL_BackSpace, 0, 0, 0, 'i', ',', 0, 0, 0, 0, 0, 0, 0, - '7', '8', '0', '(',')', 0, - '4', '5', '6', '*', '%', 0, + '7', '8', '9', '(',')', 0, + '4', '5', '6', '*', '/', 0, '1', '2', '3', '+', '-', 0, - '0', '.', 0, 0, 0, 0 + '0', '.', 0, 0, FL_KP_Enter, 0 }; FltkKbd::FltkKbd(int x, int y, int w, int h) : Fl_Group(x, y, w, h) {