mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 07:46:09 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user