hedgewars/uInputHandler.pas
changeset 13050 25a9260244f3
parent 13047 29357016f374
child 13073 6369d148cfff
--- 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