- fixed keycodes for confirmation menu.

This commit is contained in:
Christoph Oelckers 2017-02-19 17:30:02 +01:00
parent f3b6343e53
commit fa0be4d4a9

View file

@ -181,12 +181,12 @@ class MessageBoxMenu : Menu
int ch = ev.data1; int ch = ev.data1;
ch = ch >= 65 && ch <91? ch + 32 : ch; ch = ch >= 65 && ch <91? ch + 32 : ch;
if (ch == 78 /*'n'*/ || ch == 32) if (ch == 110 /*'n'*/ || ch == 32)
{ {
HandleResult(false); HandleResult(false);
return true; return true;
} }
else if (ch == 89 /*'y'*/) else if (ch == 121 /*'y'*/)
{ {
HandleResult(true); HandleResult(true);
return true; return true;