[Bf-blender-cvs] [03faffa10b9] master: UI: support A-Z accelerator keys for pie menus

Campbell Barton noreply at git.blender.org
Fri Apr 17 07:55:09 CEST 2020


Commit: 03faffa10b90d56150188502a3267458f1bfb6d4
Author: Campbell Barton
Date:   Fri Apr 17 15:50:47 2020 +1000
Branches: master
https://developer.blender.org/rB03faffa10b90d56150188502a3267458f1bfb6d4

UI: support A-Z accelerator keys for pie menus

Converting menus to PIE's was removing convenient key accelerators.

===================================================================

M	source/blender/editors/interface/interface.c

===================================================================

diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index c97f5ee8239..8cccf4e5309 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -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 */
       }



More information about the Bf-blender-cvs mailing list