diff options
author | Ricki Myers <antihc3@gmail.com> | 2008-03-13 18:12:19 +0300 |
---|---|---|
committer | Ricki Myers <antihc3@gmail.com> | 2008-03-13 18:12:19 +0300 |
commit | b3dab572328e1989276f6f4ef2dd1b6b1f82e86e (patch) | |
tree | b78e382aa878be17885e4c346b04f09d97376304 /source/blender/src/drawtext.c | |
parent | 4d3c9e88eda123c9f66825534035cbe98b7251cd (diff) |
Patch #8488: UserPref to switch between pan/paste on MMB in text editor.
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r-- | source/blender/src/drawtext.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c index a63e23b9886..22351479883 100644 --- a/source/blender/src/drawtext.c +++ b/source/blender/src/drawtext.c @@ -1546,13 +1546,16 @@ void winqreadtextspace(ScrArea *sa, void *spacedata, BWinEvent *evt) } } else if (event==MIDDLEMOUSE) { if (val) { - #if defined(_WIN32) || defined(__APPLE__) - do_textscroll(st, 1); - #else + if (U.uiflag & USER_MMB_PASTE) + { do_selection(st, G.qual&LR_SHIFTKEY); get_selection_buffer(text); do_draw= 1; - #endif + } + else + { + do_textscroll(st, 1); + } } } else if (event==RIGHTMOUSE) { if (val) { |