Menu UI feature common in other widget sets:
authorCampbell Barton <ideasman42@gmail.com>
Tue, 14 Dec 2010 02:38:29 +0000 (02:38 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 14 Dec 2010 02:38:29 +0000 (02:38 +0000)
commit35f431b3d0edda651fda97cb0156181fab07562c
tree463161e5b71e2842ff16e9baf33b925aa872e9e4
parent17bd906de3ba02c8d7bf848b1f61465f09fc631c
Menu UI feature common in other widget sets:
 Automatically assign menu keys based on name, alternative to pressing number 0-9 on menus items.

 keys are assigned by first giving each menu item the first character of any word, if that fails any key in the name is used.

- active key is shown underlined.
- only ascii keys are assigned currently.
- can run operators, open menu items.
- currently this only works in cases where number buttons were used (UI_BLOCK_NUMSELECT), but could be enabled for file menu, splash etc by removing this check.
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_intern.h
source/blender/editors/interface/interface_style.c
source/blender/editors/interface/interface_widgets.c