Fix in-between mouse events getting assign to keys

This commit is contained in:
Campbell Barton 2014-10-06 15:52:49 +02:00
parent 247b869967
commit c0e3540898
1 changed files with 2 additions and 1 deletions

View File

@ -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])