[console] Close console when escape key is pressed

I should have fixed this back when I got console working with the new
input system.
This commit is contained in:
Bill Currie 2021-11-22 14:40:34 +09:00
parent bc0451634a
commit d930a49de6

View file

@ -805,6 +805,9 @@ con_key_event (const IE_event_t *event)
} else {
#endif
switch (key->code) {
case QFK_ESCAPE:
ToggleConsole_f ();
break;
case QFK_PAGEUP:
if (key->shift & ies_control)
con->display = 0;