summaryrefslogtreecommitdiff
path: root/src/doom/m_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doom/m_menu.c')
-rw-r--r--src/doom/m_menu.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/doom/m_menu.c b/src/doom/m_menu.c
index d10a0622..450f1f12 100644
--- a/src/doom/m_menu.c
+++ b/src/doom/m_menu.c
@@ -1843,10 +1843,13 @@ boolean M_Responder (event_t* ev)
}
return true;
}
- else if (ch != 0)
- {
- // Keyboard shortcut?
+ // Keyboard shortcut?
+ // Vanilla Doom has a weird behavior where it jumps to the scroll bars
+ // when the pause key is pressed, so emulate this.
+
+ else if (ch != 0 || key == KEY_PAUSE)
+ {
for (i = itemOn+1;i < currentMenu->numitems;i++)
{
if (currentMenu->menuitems[i].alphaKey == ch)