UI: Disable operator search menu setting an unset state key key-input

This commit is contained in:
Campbell Barton 2014-09-10 19:22:29 +10:00
parent 6480fdcae4
commit 9871788a15
1 changed files with 4 additions and 2 deletions

View File

@ -815,8 +815,10 @@ static void ui_searchbox_select(bContext *C, ARegion *ar, uiBut *but, int step)
data->active = 0;
ui_searchbox_update(C, ar, but, false);
}
else if (data->active < -1)
data->active = -1;
else {
/* only let users step into an 'unset' state for unlink buttons */
data->active = (but->type == SEARCH_MENU_UNLINK) ? -1 : 0;
}
}
ED_region_tag_redraw(ar);