properly detect the escape key

This commit is contained in:
Tim Felgentreff 2020-09-28 10:27:07 +02:00
parent 670dcf155f
commit f1f06fe6f5

View file

@ -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);