diff options
| author | Manolo Gouy <Manolo> | 2010-12-13 12:30:49 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-12-13 12:30:49 +0000 |
| commit | 8132eba4f5ab7a698974316bc2624077ade36937 (patch) | |
| tree | a6cabe209c66b4291da408c03b5a1c56eec36e69 /src | |
| parent | 02f327dbec37648afe548275158e6754a91c5b3f (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Editor.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx index d7b988b1f..dd53c8a72 100644 --- a/src/Fl_Text_Editor.cxx +++ b/src/Fl_Text_Editor.cxx @@ -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 */ |
