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
This commit is contained in:
Manolo Gouy
2010-12-14 21:07:45 +00:00
parent 1f0da65165
commit 0ba139d349
+1 -1
View File
@@ -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;