Skip to content

Commit

Permalink
Fix STR #2475
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Dec 10, 2010
1 parent 042cc70 commit 3ed11e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Fl_Text_Display.cxx
Expand Up @@ -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;
Expand Down

0 comments on commit 3ed11e0

Please sign in to comment.