mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
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:
parent
dceb1f5f4d
commit
536ecccd45
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue