diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-21 11:58:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-21 12:07:52 +0300 |
commit | b681461c845cdfe193ee60e288625a29a5157a62 (patch) | |
tree | 967df8f4b0d008c6cf196c6b895c48340500a056 /source/blender/windowmanager | |
parent | f1bc9331b152cbe23d54dd01dc83871d07055477 (diff) |
Fix T55568: second click event ignored
Double-click handling caused the second click to be ignored
for keymaps that only handle click.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index c9a09f46a37..76e9b116321 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -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)) { |