From 3ed11e08b0e67179247f5b4e2a84be7773e06785 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 10 Dec 2010 16:57:23 +0000 Subject: [PATCH] Fix STR #2475 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Text_Display.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 064af2b21..6347fcd02 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -3660,7 +3660,8 @@ int Fl_Text_Display::handle(int event) { } case FL_RELEASE: { - if (Fl::event_is_click() && (! Fl::event_clicks()) && buffer()->primary_selection()->includes(dragPos) ) { + if (Fl::event_is_click() && (! Fl::event_clicks()) && + buffer()->primary_selection()->includes(dragPos) && !(Fl::event_state()&FL_SHIFT) ) { buffer()->unselect(); // clicking in the selection: unselect and move cursor insert_position(dragPos); return 1;