forked from bartvdbraak/blender
Fixed an annoying problem where sometimes tooltips would get left
hanging on screen, making you have to mouse over them to clear them. I hope this was the only issue causing this, if anyone sees hanging tooltips after this commit, please report it!
This commit is contained in:
parent
1fdb880cf4
commit
780f4c1c78
@ -5192,7 +5192,8 @@ static void ui_handle_button_return_submenu(bContext *C, wmEvent *event, uiBut *
|
|||||||
button_activate_state(C, but, BUTTON_STATE_HIGHLIGHT);
|
button_activate_state(C, but, BUTTON_STATE_HIGHLIGHT);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(event->type != MOUSEMOVE) {
|
if (ISKEYBOARD(event->type)) {
|
||||||
|
/* keyboard menu hierarchy navigation, going back to previous level */
|
||||||
but->active->used_mouse= 0;
|
but->active->used_mouse= 0;
|
||||||
button_activate_state(C, but, BUTTON_STATE_HIGHLIGHT);
|
button_activate_state(C, but, BUTTON_STATE_HIGHLIGHT);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user