From ad709d61514c3b7d6e9f6e1d1e6aa68fbaebf12d Mon Sep 17 00:00:00 2001 From: vcaesar Date: Wed, 12 Dec 2018 09:37:56 -0400 Subject: [PATCH] add numpad key and escape abbreviation support --- docs/keys.md | 15 ++++++++++++++- key/goKey.h | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/docs/keys.md b/docs/keys.md index 7a6cfaa..58b0aa7 100644 --- a/docs/keys.md +++ b/docs/keys.md @@ -5,6 +5,7 @@ "delete" "enter" "tab" + "esc" "escape" "up" Up arrow key "down" Down arrow key @@ -63,6 +64,19 @@ "audio_repeat" Linux only "audio_random" Linux only + + "num0" + "num1" + "num2" + "num3" + "num4" + "num5" + "num6" + "num7" + "num8" + "num9" + "num_lock" + // "numpad_0" No Linux support "numpad_0" "numpad_1" @@ -74,7 +88,6 @@ "numpad_7" "numpad_8" "numpad_9" - "num_lock" "numpad_lock" "lights_mon_up" Turn up monitor brightness No Windows support diff --git a/key/goKey.h b/key/goKey.h index 49fd6f8..b6d87af 100644 --- a/key/goKey.h +++ b/key/goKey.h @@ -25,6 +25,7 @@ struct KeyNames{ { "delete", K_DELETE }, { "enter", K_RETURN }, { "tab", K_TAB }, + { "esc", K_ESCAPE }, { "escape", K_ESCAPE }, { "up", K_UP }, { "down", K_DOWN }, @@ -85,6 +86,19 @@ struct KeyNames{ { "audio_repeat", K_AUDIO_REPEAT }, { "audio_random", K_AUDIO_RANDOM }, + + { "num0", K_NUMPAD_0 }, + { "num1", K_NUMPAD_1 }, + { "num2", K_NUMPAD_2 }, + { "num3", K_NUMPAD_3 }, + { "num4", K_NUMPAD_4 }, + { "num5", K_NUMPAD_5 }, + { "num6", K_NUMPAD_6 }, + { "num7", K_NUMPAD_7 }, + { "num8", K_NUMPAD_8 }, + { "num9", K_NUMPAD_9 }, + { "num_lock", K_NUMPAD_LOCK }, + { "numpad_0", K_NUMPAD_0 }, { "numpad_1", K_NUMPAD_1 }, { "numpad_2", K_NUMPAD_2 }, @@ -95,7 +109,6 @@ struct KeyNames{ { "numpad_7", K_NUMPAD_7 }, { "numpad_8", K_NUMPAD_8 }, { "numpad_9", K_NUMPAD_9 }, - { "num_lock", K_NUMPAD_LOCK }, { "numpad_lock", K_NUMPAD_LOCK }, { "lights_mon_up", K_LIGHTS_MON_UP },