fix [#32384] Submenu hotkeys not working at all since 2.6x
This commit is contained in:
parent
1a22503cba
commit
12c71a8c68
@ -6353,7 +6353,16 @@ static int ui_handle_menu_event(bContext *C, wmEvent *event, uiPopupBlockHandle
|
||||
}
|
||||
|
||||
if (doit) {
|
||||
ui_handle_button_activate(C, ar, but, BUTTON_ACTIVATE_APPLY);
|
||||
/* activate buttons but open menu's */
|
||||
uiButtonActivateType activate;
|
||||
if (but->type == PULLDOWN) {
|
||||
activate = BUTTON_ACTIVATE_OPEN;
|
||||
}
|
||||
else {
|
||||
activate = BUTTON_ACTIVATE_APPLY;
|
||||
}
|
||||
|
||||
ui_handle_button_activate(C, ar, but, activate);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user