From afd1f0c713357f3306ddc176d2b86c2f25a14eca Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Wed, 7 May 2025 05:50:47 -0700 Subject: [PATCH] do not reset to default bindings if not needed... --- src/raddbg/raddbg_core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/raddbg/raddbg_core.c b/src/raddbg/raddbg_core.c index 08c78e06..d0c173bb 100644 --- a/src/raddbg/raddbg_core.c +++ b/src/raddbg/raddbg_core.c @@ -12689,7 +12689,11 @@ rd_frame(void) //- rjf: if config did not define any keybindings for the user, then we need to build a sensible default if(file_is_okay && kind == RD_CmdKind_OpenUser) { - rd_cmd(RD_CmdKind_ResetToDefaultBindings); + RD_CfgList all_keybindings = rd_cfg_child_list_from_string(scratch.arena, file_root, str8_lit("keybindings")); + if(all_keybindings.count == 0) + { + rd_cmd(RD_CmdKind_ResetToDefaultBindings); + } } //- rjf: record recently-opened projects in the user