Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-09-07 16:45:05 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-09-07 16:45:05 +0400
commit65da19b0cde2f77ee0b89528c130b5bab606ec52 (patch)
treee1af944bbeb3f5cdc8f046282db93ffb5f73f74a /source/blender/editors
parent9460fe3fa055901344f32642cc996cbfb3de4864 (diff)
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.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_graph/graph_ops.c1
1 files changed, 1 insertions, 0 deletions
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
*/