File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5024,6 +5024,9 @@ static bool menu_input_key_bind_iterate(
50245024
50255025 if (complete )
50265026 {
5027+ /* Always stop binding when not binding all */
5028+ bool stop_binding = new_binds .order == 0 && new_binds .begin == new_binds .last ;
5029+
50275030 /* Update bind */
50285031 * (new_binds .output ) = new_binds .buffer ;
50295032
@@ -5045,7 +5048,7 @@ static bool menu_input_key_bind_iterate(
50455048 new_binds .begin = MENU_SETTINGS_BIND_BEGIN + input_config_bind_order [new_binds .order ];
50465049
50475050 if ( new_binds .order > ARRAY_SIZE (input_config_bind_order ) - 1
5048- || new_binds . last != MENU_SETTINGS_BIND_LAST )
5051+ || stop_binding )
50495052 {
50505053 input_st -> keyboard_press_cb = NULL ;
50515054 input_st -> keyboard_press_data = NULL ;
You can’t perform that action at this time.
0 commit comments