summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-12-14 21:07:45 +0000
committerManolo Gouy <Manolo>2010-12-14 21:07:45 +0000
commit0ba139d3490d6e999d407f40f88aa2f72ce9ea4a (patch)
treeb8895c8103997522f50cff0ea2bc97e50e8ad84d /src/Fl_Text_Display.cxx
parent1f0da6516596f60822e423fe40153884f6b7e2fc (diff)
Fix STR # 2485. Triple click must be done with left mouse button to select a whole line.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Display.cxx')
-rw-r--r--src/Fl_Text_Display.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index 3891ac3be..2463bb022 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -3669,7 +3669,7 @@ int Fl_Text_Display::handle(int event) {
buffer()->unselect(); // clicking in the selection: unselect and move cursor
insert_position(dragPos);
return 1;
- } else if (Fl::event_clicks() == DRAG_LINE) {
+ } else if (Fl::event_clicks() == DRAG_LINE && Fl::event_button() == FL_LEFT_MOUSE) {
buffer()->select(buffer()->line_start(dragPos), buffer()->next_char(buffer()->line_end(dragPos)));
dragPos = line_start(dragPos);
dragType = DRAG_CHAR;