mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
[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:
parent
bc0451634a
commit
d930a49de6
1 changed files with 3 additions and 0 deletions
|
@ -805,6 +805,9 @@ con_key_event (const IE_event_t *event)
|
||||||
} else {
|
} else {
|
||||||
#endif
|
#endif
|
||||||
switch (key->code) {
|
switch (key->code) {
|
||||||
|
case QFK_ESCAPE:
|
||||||
|
ToggleConsole_f ();
|
||||||
|
break;
|
||||||
case QFK_PAGEUP:
|
case QFK_PAGEUP:
|
||||||
if (key->shift & ies_control)
|
if (key->shift & ies_control)
|
||||||
con->display = 0;
|
con->display = 0;
|
||||||
|
|
Loading…
Reference in a new issue