InputHandler: Shorten "Escape" to "Esc"
authorWuzzy <Wuzzy2@mail.ru>
Wed, 21 Feb 2018 03:05:50 +0100
changeset 13045 25a9260244f3
parent 13044 1df5b407f368
child 13046 eb9f9608158b
InputHandler: Shorten "Escape" to "Esc"
hedgewars/uInputHandler.pas
--- a/hedgewars/uInputHandler.pas	Wed Feb 21 03:03:16 2018 +0100
+++ b/hedgewars/uInputHandler.pas	Wed Feb 21 03:05:50 2018 +0100
@@ -125,7 +125,10 @@
     else
         begin
         name:= SDL_GetKeyName(SDL_GetKeyFromScancode(code));
-        if (name <> '') then
+        if (name = 'Escape') then
+            // Let's shorten the name “Escape” for the quit menu
+            KeyBindToName:= 'Esc'
+        else if (name <> '') then
             KeyBindToName:= name
         else
             begin