diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-09-10 13:22:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-09-10 13:22:29 +0400 |
commit | 9871788a156a6cae711e0ac0e1953ad86df2e4a4 (patch) | |
tree | 4b18e4f1a7afc9d5bbbd2092cf50bce9a64e15b4 /source/blender/editors/interface/interface_regions.c | |
parent | 6480fdcae4c722468c87570b81e321c518fcbe53 (diff) |
UI: Disable operator search menu setting an unset state key key-input
Diffstat (limited to 'source/blender/editors/interface/interface_regions.c')
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index 2af1f5c3322..291a9eb984f 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -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); |