mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-12-01 10:03:20 -08:00
control to disable windows style menu bar alt behavior
This commit is contained in:
1 parent
c9227b71e2
commit
3d1f764741
3 files changed
+7
-2
No files matched your search
@@ -7212,7 +7212,7 @@ rd_window_frame(void)
|
||||
{
|
||||
ui_set_next_fastpath_codepoint(items[idx].codepoint);
|
||||
B32 alt_fastpath_key = 0;
|
||||
if(ui_key_press(OS_Modifier_Alt, items[idx].key))
|
||||
if(rd_setting_b32_from_name(str8_lit("focus_menu_bar_with_alt")) && ui_key_press(OS_Modifier_Alt, items[idx].key))
|
||||
{
|
||||
alt_fastpath_key = 1;
|
||||
}
|
||||
@@ -11855,6 +11855,7 @@ rd_frame(void)
|
||||
}
|
||||
|
||||
//- rjf: try menu bar operations
|
||||
if(rd_setting_b32_from_name(str8_lit("focus_menu_bar_with_alt")))
|
||||
{
|
||||
if(!take && event->kind == OS_EventKind_Press && event->key == OS_Key_Alt && event->modifiers == 0 && event->is_repeat == 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user