#885: Fixes keyboard text selection in Fl_Text_Editor

This commit is contained in:
Matthias Melcher 2024-01-11 16:20:55 +01:00
parent dc70a04100
commit a237743c8b

View File

@ -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)));