diff options
| author | Manolo Gouy <Manolo> | 2010-12-10 16:57:23 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-12-10 16:57:23 +0000 |
| commit | 3ed11e08b0e67179247f5b4e2a84be7773e06785 (patch) | |
| tree | 5aec55c249d54b37b167b10fbdec5d160d80399d /src | |
| parent | 042cc7085ebdd54ed22ed03e541f160a4e613e54 (diff) | |
Fix STR #2475
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
