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:
Matt Ebb 2010-07-24 02:49:58 +00:00
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);
}
else {
if(event->type != MOUSEMOVE) {
if (ISKEYBOARD(event->type)) {
/* keyboard menu hierarchy navigation, going back to previous level */
but->active->used_mouse= 0;
button_activate_state(C, but, BUTTON_STATE_HIGHLIGHT);
}