Fix error clearing the popup toolbar keymap

Generating the keymap for the tooltip stopped shortcuts from running.

While this could be supported - the shortcuts show in the button,
so remove shortcuts from these tips.
This commit is contained in:
Campbell Barton
2018-11-12 12:22:05 +11:00
parent 89786d4e30
commit 8d2ca0b8ef

View File

@@ -449,7 +449,7 @@ static uiTooltipData *ui_tooltip_data_from_tool(bContext *C, uiBut *but, bool is
}
/* Shortcut. */
if (is_label == false) {
if (is_label == false && ((but->block->flag & UI_BLOCK_SHOW_SHORTCUT_ALWAYS) == 0)) {
/* There are different kinds of shortcuts:
*
* - Direct access to the tool (as if the toolbar button is pressed).