UI: support A-Z accelerator keys for pie menus

Converting menus to PIE's was removing convenient key accelerators.
This commit is contained in:
Campbell Barton 2020-04-17 15:50:47 +10:00
parent f1f68b3f9a
commit 03faffa10b
1 changed files with 3 additions and 1 deletions

View File

@ -979,7 +979,9 @@ static void ui_menu_block_set_keyaccels(uiBlock *block)
UI_BTYPE_BUT_MENU,
UI_BTYPE_MENU,
UI_BTYPE_BLOCK,
UI_BTYPE_PULLDOWN) ||
UI_BTYPE_PULLDOWN,
/* For PIE-menus. */
UI_BTYPE_ROW) ||
(but->flag & UI_HIDDEN)) {
/* pass */
}