[Bf-blender-cvs] [c0e3540] master: Fix in-between mouse events getting assign to keys
Campbell Barton
noreply at git.blender.org
Mon Oct 6 16:41:22 CEST 2014
Commit: c0e3540898a922518d429abb81aecd98551daca6
Author: Campbell Barton
Date: Mon Oct 6 15:52:49 2014 +0200
Branches: master
https://developer.blender.org/rBc0e3540898a922518d429abb81aecd98551daca6
Fix in-between mouse events getting assign to keys
===================================================================
M source/blender/editors/interface/interface_handlers.c
===================================================================
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index d3c9ec1..9138ac9 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -3111,8 +3111,9 @@ static int ui_do_but_KEYEVT(bContext *C, uiBut *but, uiHandleButtonData *data, c
}
}
else if (data->state == BUTTON_STATE_WAIT_KEY_EVENT) {
- if (event->type == MOUSEMOVE)
+ if (ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)) {
return WM_UI_HANDLER_CONTINUE;
+ }
if (event->val == KM_PRESS) {
if (WM_key_event_string(event->type)[0])
More information about the Bf-blender-cvs
mailing list