mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
don't handle key presses if there's no callback and no items
This commit is contained in:
parent
9f6a16af18
commit
9f67e81049
1 changed files with 2 additions and 0 deletions
|
@ -420,6 +420,8 @@ Menu_KeyEvent (knum_t key, short unicode, qboolean down)
|
|||
if (G_INT (&menu_pr_state, OFS_RETURN))
|
||||
return;
|
||||
}
|
||||
if (!menu->items)
|
||||
return;
|
||||
switch (key) {
|
||||
case QFK_DOWN:
|
||||
case QFM_WHEEL_DOWN:
|
||||
|
|
Loading…
Reference in a new issue