#885: Fixes keyboard text selection in Fl_Text_Editor
This commit is contained in:
parent
dc70a04100
commit
a237743c8b
@ -4275,6 +4275,7 @@ int Fl_Text_Display::handle(int event) {
|
||||
buffer()->primary_selection()->includes(dragPos) && !(Fl::event_state()&FL_SHIFT) ) {
|
||||
buffer()->unselect(); // clicking in the selection: unselect and move cursor
|
||||
insert_position(dragPos);
|
||||
dragType = DRAG_CHAR;
|
||||
return 1;
|
||||
} 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)));
|
||||
|
Loading…
Reference in New Issue
Block a user