From f1f06fe6f5a5eead018b7c2ca202ff343a9efea1 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff <timfelgentreff@gmail.com> Date: Mon, 28 Sep 2020 10:27:07 +0200 Subject: [PATCH] properly detect the escape key --- src/ui/botpanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/botpanel.cpp b/src/ui/botpanel.cpp index 1e40304fb..4ee71f10d 100644 --- a/src/ui/botpanel.cpp +++ b/src/ui/botpanel.cpp @@ -774,7 +774,7 @@ void CButtonPanel::Draw() // Tutorial show command key in icons // if (ShowCommandKey) { - if (buttons[i].Key == gcn::Key::K_ESCAPE) { + if (buttons[i].Key == gcn::Key::K_ESCAPE || buttons[i].Key == 27) { strcpy_s(buf, sizeof(buf), "ESC"); } else { buf[0] = toupper(buttons[i].Key);