Fix STR #2478: added missing code that updates the FLTK selection buffer after
the Fl_Text_xxx selection is changed by shift-arrow key. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
02f327dbec
commit
8132eba4f5
@ -317,6 +317,11 @@ int Fl_Text_Editor::kf_move(int c, Fl_Text_Editor* e) {
|
||||
int Fl_Text_Editor::kf_shift_move(int c, Fl_Text_Editor* e) {
|
||||
kf_move(c, e);
|
||||
fl_text_drag_me(e->insert_position(), e);
|
||||
char *copy = e->buffer()->selection_text();
|
||||
if (copy) {
|
||||
Fl::copy(copy, strlen(copy), 0);
|
||||
free(copy);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
/** Moves the current text cursor in the direction indicated by control key */
|
||||
|
Loading…
Reference in New Issue
Block a user