Swallowing shortcut keys the first time the menu comes up; now ESC in the F4 menu won't break out

This commit is contained in:
Nathan Woods 2014-04-12 17:21:38 +00:00
parent dceb1f5f4d
commit 536ecccd45
2 changed files with 4 additions and 1 deletions

View file

@ -65,6 +65,7 @@ ui_menubar::ui_menubar(running_machine &machine)
m_mouse_y = -1;
m_mouse_button = false;
m_last_mouse_move = 0;
m_first_time = true;
}
@ -239,7 +240,8 @@ bool ui_menubar::event_loop()
if (!done)
{
bool navigation_input_pressed = poll_navigation_keys();
poll_shortcut_keys(navigation_input_pressed);
poll_shortcut_keys(navigation_input_pressed || m_first_time);
m_first_time = false;
done = true;
}
return done;

View file

@ -226,6 +226,7 @@ private:
float m_checkmark_width;
osd_ticks_t m_last_mouse_move;
menubar_visibility_t m_menubar_visibility;
bool m_first_time;
// selection walking
bool walk_selection_previous();