Author: manolo
Date: 2010-12-13 04:30:49 -0800 (Mon, 13 Dec 2010)
New Revision: 8024
Log:
Fix STR #2478: added missing code that updates the FLTK selection buffer after
the Fl_Text_xxx selection is changed by shift-arrow key.
Modified:
branches/branch-1.3/src/Fl_Text_Editor.cxx
Modified: branches/branch-1.3/src/Fl_Text_Editor.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Text_Editor.cxx 2010-12-13 12:21:12 UTC (rev
8023)
+++ branches/branch-1.3/src/Fl_Text_Editor.cxx 2010-12-13 12:30:49 UTC (rev
8024)
@@ -317,6 +317,11 @@
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 */
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit