# HG changeset patch # User Wuzzy # Date 1519178750 -3600 # Node ID 25a9260244f390e2a98b2d1540c27e9522f17d61 # Parent 1df5b407f3688d308753de0d91403023b7a18d56 InputHandler: Shorten "Escape" to "Esc" diff -r 1df5b407f368 -r 25a9260244f3 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