Fix #80307: Underline shortcut not working in enum context menus #104433

Merged
Leon Schittek merged 2 commits from lone_noel/blender:fix-80307-activate-enums-in-popovers into main 2023-02-13 10:43:46 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -9039,7 +9039,7 @@ static void ui_handle_button_activate(bContext *C,
*/ */
static bool ui_handle_button_activate_by_type(bContext *C, ARegion *region, uiBut *but) static bool ui_handle_button_activate_by_type(bContext *C, ARegion *region, uiBut *but)
{ {
if (but->type == UI_BTYPE_BUT_MENU) { if (ELEM(but->type, UI_BTYPE_BUT_MENU, UI_BTYPE_ROW)) {
/* mainly for operator buttons */ /* mainly for operator buttons */
ui_handle_button_activate(C, region, but, BUTTON_ACTIVATE_APPLY); ui_handle_button_activate(C, region, but, BUTTON_ACTIVATE_APPLY);
} }