From 65da19b0cde2f77ee0b89528c130b5bab606ec52 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 7 Sep 2014 14:45:05 +0200 Subject: Fix T41740: Different behaviour of custom hotkey Quick fix, this is actually a demonstration of why we should use modal keymaps! We can give any event to *start* the op, but then hard-code how to *end* it... tsk. --- source/blender/editors/space_graph/graph_ops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors') diff --git a/source/blender/editors/space_graph/graph_ops.c b/source/blender/editors/space_graph/graph_ops.c index fbfa9358a22..62b6b59df29 100644 --- a/source/blender/editors/space_graph/graph_ops.c +++ b/source/blender/editors/space_graph/graph_ops.c @@ -167,6 +167,7 @@ static int graphview_cursor_modal(bContext *C, wmOperator *op, const wmEvent *ev case LEFTMOUSE: case RIGHTMOUSE: + case MIDDLEMOUSE: /* we check for either mouse-button to end, as checking for ACTIONMOUSE (which is used to init * the modal op) doesn't work for some reason */ -- cgit v1.2.3