Author: manolo
Date: 2010-12-14 13:07:45 -0800 (Tue, 14 Dec 2010)
New Revision: 8029
Log:
Fix STR # 2485. Triple click must be done with left mouse button to select a 
whole line.

Modified:
   branches/branch-1.3/src/Fl_Text_Display.cxx

Modified: branches/branch-1.3/src/Fl_Text_Display.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Text_Display.cxx 2010-12-14 19:46:55 UTC (rev 
8028)
+++ branches/branch-1.3/src/Fl_Text_Display.cxx 2010-12-14 21:07:45 UTC (rev 
8029)
@@ -3669,7 +3669,7 @@
        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;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to