| Previous | 199869 Revisions | Next |
| r29574 Saturday 12th April, 2014 at 17:21:38 UTC by Nathan Woods |
|---|
| Swallowing shortcut keys the first time the menu comes up; now ESC in the F4 menu won't break out |
| [/branches/new_menus/src/emu/ui] | menubar.c menubar.h |
| r29573 | r29574 | |
|---|---|---|
| 65 | 65 | m_mouse_y = -1; |
| 66 | 66 | m_mouse_button = false; |
| 67 | 67 | m_last_mouse_move = 0; |
| 68 | m_first_time = true; | |
| 68 | 69 | } |
| 69 | 70 | |
| 70 | 71 | |
| r29573 | r29574 | |
| 239 | 240 | if (!done) |
| 240 | 241 | { |
| 241 | 242 | bool navigation_input_pressed = poll_navigation_keys(); |
| 242 | poll_shortcut_keys(navigation_input_pressed); | |
| 243 | poll_shortcut_keys(navigation_input_pressed || m_first_time); | |
| 244 | m_first_time = false; | |
| 243 | 245 | done = true; |
| 244 | 246 | } |
| 245 | 247 | return done; |
| r29573 | r29574 | |
|---|---|---|
| 226 | 226 | float m_checkmark_width; |
| 227 | 227 | osd_ticks_t m_last_mouse_move; |
| 228 | 228 | menubar_visibility_t m_menubar_visibility; |
| 229 | bool m_first_time; | |
| 229 | 230 | |
| 230 | 231 | // selection walking |
| 231 | 232 | bool walk_selection_previous(); |
| Previous | 199869 Revisions | Next |