Skip to content

Commit

Permalink
Fix STR # 2485. Triple click must be done with left mouse button to s…
Browse files Browse the repository at this point in the history
…elect a whole line.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Dec 14, 2010
1 parent 1f0da65 commit 0ba139d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fl_Text_Display.cxx
Expand Up @@ -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;
Expand Down

0 comments on commit 0ba139d

Please sign in to comment.