diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-13 05:39:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-13 05:39:07 +0400 |
commit | 8b4bca6cf056e81b0ae0e4854d2bd93d08d3a932 (patch) | |
tree | bd0c58502f7909c4ce4c9bb0c03b44cae72ca388 /source/blender | |
parent | 8eb6b954fd0a70d7b7e48c4f7b41b995702fe0d3 (diff) |
fix [#35713] Set Origin not waiting for user input.
Only activate search-box items on mouse-release,
Otherwise this gives odd behavior when using the operator-search popup since some tools expect the mouse buttons not to be held when activating which includes operators that have their own popup menus.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index d431115d84e..875789c5758 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -2128,8 +2128,11 @@ static void ui_do_but_textedit(bContext *C, uiBlock *block, uiBut *but, uiHandle changed = true; } else if (inbox) { - button_activate_state(C, but, BUTTON_STATE_EXIT); - retval = WM_UI_HANDLER_BREAK; + /* if we allow activation on key press, it gives problems launching operators [#35713] */ + if (event->val == KM_RELEASE) { + button_activate_state(C, but, BUTTON_STATE_EXIT); + retval = WM_UI_HANDLER_BREAK; + } } break; } |