Fix #24074: shift+MMB didn't pan in image editor like other 2d views.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 30 Sep 2010 21:07:42 +0000 (21:07 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 30 Sep 2010 21:07:42 +0000 (21:07 +0000)
source/blender/editors/space_image/space_image.c

index ffa8f6e..66e2799 100644 (file)
@@ -501,6 +501,7 @@ void image_keymap(struct wmKeyConfig *keyconf)
        WM_keymap_add_item(keymap, "IMAGE_OT_view_all", HOMEKEY, KM_PRESS, 0, 0);
        WM_keymap_add_item(keymap, "IMAGE_OT_view_selected", PADPERIOD, KM_PRESS, 0, 0);
        WM_keymap_add_item(keymap, "IMAGE_OT_view_pan", MIDDLEMOUSE, KM_PRESS, 0, 0);
+       WM_keymap_add_item(keymap, "IMAGE_OT_view_pan", MIDDLEMOUSE, KM_PRESS, KM_SHIFT, 0);
        WM_keymap_add_item(keymap, "IMAGE_OT_view_pan", MOUSEPAN, 0, 0, 0);
 
        WM_keymap_add_item(keymap, "IMAGE_OT_view_zoom_in", WHEELINMOUSE, KM_PRESS, 0, 0);