Event System: support changing NDOF button shortcuts

This commit is contained in:
Campbell Barton 2022-03-08 13:54:47 +11:00
parent b58e660828
commit 88b2bbc649
1 changed files with 1 additions and 1 deletions

View File

@ -1036,7 +1036,7 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but, const wmEvent *ev
/* We do have a shortcut, but only keyboard ones are editable that way... */
if (kmi) {
if (ISKEYBOARD(kmi->type)) {
if (ISKEYBOARD(kmi->type) || ISNDOF_BUTTON(kmi->type)) {
#if 0 /* would rather use a block but, but gets weirdly positioned... */
uiDefBlockBut(block,
menu_change_shortcut,