Fixed accessibility for menu start actions.

This commit is contained in:
Barry Rowe 2020-04-04 11:47:19 -07:00
parent 159190cc14
commit fca7bc52ed
5 changed files with 5 additions and 8 deletions

View file

@ -6881,8 +6881,6 @@ static enum menu_action materialui_parse_menu_entry_action(
}
else if (!materialui_entry_onscreen(mui, selection))
new_action = MENU_ACTION_NOOP;
else
new_action = MENU_ACTION_ACCESSIBILITY_SPEAK_TITLE_LABEL;
}
break;
case MENU_ACTION_INFO:

View file

@ -3266,8 +3266,6 @@ static enum menu_action ozone_parse_menu_entry_action(
}
if (ozone->cursor_in_sidebar)
new_action = MENU_ACTION_ACCESSIBILITY_SPEAK_TITLE;
else
new_action = MENU_ACTION_ACCESSIBILITY_SPEAK_TITLE_LABEL;
break;
case MENU_ACTION_DOWN:
if (ozone->cursor_in_sidebar)

View file

@ -5286,9 +5286,6 @@ static enum menu_action rgui_parse_menu_entry_action(
rgui_toggle_fs_thumbnail(rgui);
new_action = MENU_ACTION_NOOP;
break;
case MENU_ACTION_START:
new_action = MENU_ACTION_ACCESSIBILITY_SPEAK_TITLE_LABEL;
break;
default:
/* In all other cases, pass through input
* menu action without intervention */

View file

@ -6842,7 +6842,6 @@ static enum menu_action xmb_parse_menu_entry_action(
new_action = MENU_ACTION_NOOP;
break;
}
new_action = MENU_ACTION_ACCESSIBILITY_SPEAK_TITLE_LABEL;
break;
default:
/* In all other cases, pass through input

View file

@ -483,6 +483,11 @@ int generic_menu_entry_action(
get_current_menu_label(current_label, sizeof(current_label));
break;
case MENU_ACTION_START:
if (!string_is_equal(current_value, "..."))
{
menu_entries_get_title(title_name, sizeof(title_name));
get_current_menu_label(current_label, sizeof(current_label));
}
break;
case MENU_ACTION_SELECT:
case MENU_ACTION_SEARCH: