properly detect the escape key
This commit is contained in:
parent
670dcf155f
commit
f1f06fe6f5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue