diff --git a/src/raddbg/raddbg.c b/src/raddbg/raddbg.c index ca7e2be1..d877c146 100644 --- a/src/raddbg/raddbg.c +++ b/src/raddbg/raddbg.c @@ -186,7 +186,7 @@ update_and_render(OS_Handle repaint_window_handle, void *user_data) continue; } B32 take = 0; - if(event->kind == OS_EventKind_Press && event->key == OS_Key_Alt && event->is_repeat == 0) + if(event->kind == OS_EventKind_Press && event->key == OS_Key_Alt && event->flags == 0 && event->is_repeat == 0) { take = 1; df_gfx_request_frame(); @@ -194,19 +194,19 @@ update_and_render(OS_Handle repaint_window_handle, void *user_data) ws->menu_bar_key_held = 1; ws->menu_bar_focus_press_started = 1; } - if(event->kind == OS_EventKind_Release && event->key == OS_Key_Alt && event->is_repeat == 0) + if(event->kind == OS_EventKind_Release && event->key == OS_Key_Alt && event->flags == 0 && event->is_repeat == 0) { take = 1; df_gfx_request_frame(); ws->menu_bar_key_held = 0; } - if(ws->menu_bar_focused && event->kind == OS_EventKind_Press && event->key == OS_Key_Alt && event->is_repeat == 0) + if(ws->menu_bar_focused && event->kind == OS_EventKind_Press && event->key == OS_Key_Alt && event->flags == 0 && event->is_repeat == 0) { take = 1; df_gfx_request_frame(); ws->menu_bar_focused = 0; } - else if(ws->menu_bar_focus_press_started && !ws->menu_bar_focused && event->kind == OS_EventKind_Release && event->key == OS_Key_Alt && event->is_repeat == 0) + else if(ws->menu_bar_focus_press_started && !ws->menu_bar_focused && event->kind == OS_EventKind_Release && event->flags == 0 && event->key == OS_Key_Alt && event->is_repeat == 0) { take = 1; df_gfx_request_frame(); diff --git a/src/raddbg/raddbg.h b/src/raddbg/raddbg.h index 6de66459..10c213a9 100644 --- a/src/raddbg/raddbg.h +++ b/src/raddbg/raddbg.h @@ -85,8 +85,6 @@ // [ ] escaping in config files - breakpoint labels etc. // [ ] focus changing between query bar & panel content via mouse // -// [ ] ** while typing, "Alt" Windows menu things should not happen -// // [ ] visualize conversion failures // // [ ] I was a little confused about what a profile file was. I understood