From 0ba139d3490d6e999d407f40f88aa2f72ce9ea4a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 14 Dec 2010 21:07:45 +0000 Subject: 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 --- src/Fl_Text_Display.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3