Fix T55568: second click event ignored

Double-click handling caused the second click to be ignored
for keymaps that only handle click.
This commit is contained in:
Campbell Barton 2018-06-21 10:58:03 +02:00
parent a283333cd8
commit 52aa963f0e
1 changed files with 7 additions and 0 deletions

View File

@ -2329,6 +2329,13 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
else if (event->val == KM_DBL_CLICK) {
event->val = KM_PRESS;
action |= wm_handlers_do_intern(C, event, handlers);
event->val = KM_RELEASE;
action |= wm_handlers_do_intern(C, event, handlers);
if (wm_action_not_handled(action)) {
event->val = KM_CLICK;
action |= wm_handlers_do_intern(C, event, handlers);
}
/* revert value if not handled */
if (wm_action_not_handled(action)) {