Fix regular custom binds

This commit is contained in:
twinaphex 2015-01-27 18:47:57 +01:00
parent e87c3efaee
commit 30dea5e4ff
2 changed files with 6 additions and 3 deletions

View File

@ -3227,8 +3227,11 @@ static int action_iterate_main(const char *label, unsigned action)
!strcmp(label, "rdb_entry_detail")
)
return action_iterate_rdb_entry_detail(label, path_offset, label_offset, action);
else if (!strcmp(label, "custom_bind_all") ||
!strcmp(label, "custom_bind_defaults"))
else if (
!strcmp(label, "custom_bind") ||
!strcmp(label, "custom_bind_all") ||
!strcmp(label, "custom_bind_defaults")
)
{
if (g_extern.menu.bind_mode_keyboard)
return action_iterate_custom_bind_keyboard(label, action);

View File

@ -1090,7 +1090,7 @@ static int setting_data_bind_action_ok(void *data, unsigned action)
menu_list_push_stack(
driver.menu->menu_list,
"",
"",
"custom_bind",
g_extern.menu.bind_mode_keyboard ?
MENU_SETTINGS_CUSTOM_BIND_KEYBOARD : MENU_SETTINGS_CUSTOM_BIND,
driver.menu->selection_ptr);