Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2012-10-27 13:52:26 +0400
committerTon Roosendaal <ton@blender.org>2012-10-27 13:52:26 +0400
commit3189dac959e12d60ed0bc9c9b0dbd701277b4412 (patch)
tree128e8d1cbdc81c2212d2be33dffd1280107779b1 /source/blender/windowmanager/intern/wm_event_system.c
parentd6d8de015c0cc70b8f0e2bbdf3cbd39e6176e31e (diff)
The UI wasn't capable of handling Double Click events; causing fast typing to
not work. This is a temporary fix to make button type work. I'll check on other cases now too. Best would be to have UI code return correct flags for whether it has done something or not. This hasn't been coded really - so that's a todo for a later cleanup there.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_event_system.c')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 391c03b88fa..902b82c9b2d 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -339,6 +339,11 @@ static int wm_handler_ui_call(bContext *C, wmEventHandler *handler, wmEvent *eve
int is_wheel = ELEM(event->type, WHEELUPMOUSE, WHEELDOWNMOUSE);
int retval;
+ /* UI code doesn't handle return values - it just always returns break.
+ to make the DBL_CLICK conversion work, we just don't send this to UI */
+ if (event->val == KM_DBL_CLICK)
+ return WM_HANDLER_CONTINUE;
+
/* UI is quite aggressive with swallowing events, like scrollwheel */
/* I realize this is not extremely nice code... when UI gets keymaps it can be maybe smarter */
if (do_wheel_ui == FALSE) {