diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-01-11 16:20:55 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-01-11 16:20:55 +0100 |
| commit | a237743c8babfe5a24acd9b3ab7aa79dcf0159ad (patch) | |
| tree | 59a4f9cb62da0e9e2e4545b4c3722139da4711a3 /src | |
| parent | dc70a04100fd491151d3478a05ecf8baecfa894c (diff) | |
#885: Fixes keyboard text selection in Fl_Text_Editor
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index a7c96d689..f67b1865e 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -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))); |
