summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2004-11-20 03:44:18 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2004-11-20 03:44:18 +0000
commitfc8d065cd73f6a9a5477ea5106da6b26c5cf9a29 (patch)
tree603bb2ac5525a281dc539eb1682a298e6a68fdf3 /src/Fl_Text_Display.cxx
parent23bb0590651da3f342cddcd3c87aee38a1d067cc (diff)
The configure script did not support --disable-localfoo to
completely disable image file support (STR #582) The Visual C++ 6.0 project files still listed the old JPEG, PNG, and ZLIB library names (STR #577) Fixed the scandir() conditional code for HP-UX 11i (STR #585) Fl_Text_Display didn't support CTRL/CMD-A/C (STR #601) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Display.cxx')
-rw-r--r--src/Fl_Text_Display.cxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index 5afe7f977..d7c9447dd 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Text_Display.cxx,v 1.12.2.57 2004/09/07 20:59:17 easysw Exp $"
+// "$Id: Fl_Text_Display.cxx,v 1.12.2.58 2004/11/20 03:44:17 easysw Exp $"
//
// Copyright 2001-2004 by Bill Spitzak and others.
// Original code Copyright Mark Edel. Permission to distribute under
@@ -3124,6 +3124,23 @@ int Fl_Text_Display::handle(int event) {
if (buffer()->selected()) redraw();
return 1;
+
+ case FL_KEYBOARD:
+ // Copy?
+ if ((Fl::event_state()&(FL_CTRL|FL_COMMAND)) && Fl::event_key()=='c') {
+ if (!buffer()->selected()) return 1;
+ const char *copy = buffer()->selection_text();
+ if (*copy) Fl::copy(copy, strlen(copy), 1);
+ free((void*)copy);
+ return 1;
+ }
+
+ // Select all ?
+ if ((Fl::event_state()&(FL_CTRL|FL_COMMAND)) && Fl::event_key()=='a') {
+ buffer()->select(0,buffer()->length());
+ return 1;
+ }
+ break;
}
return 0;
@@ -3131,5 +3148,5 @@ int Fl_Text_Display::handle(int event) {
//
-// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.57 2004/09/07 20:59:17 easysw Exp $".
+// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.58 2004/11/20 03:44:17 easysw Exp $".
//