summaryrefslogtreecommitdiff
path: root/src/Fl_Input.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2001-01-28 06:57:33 +0000
committerBill Spitzak <spitzak@gmail.com>2001-01-28 06:57:33 +0000
commit4fb627c3d81a7574490d2e9fa1f1af60979deafa (patch)
tree81c274e9aa7b940a92513b7a50c59a17f2f9e3fd /src/Fl_Input.cxx
parentffe92796d82eb51b4f2b0f90932ea4cee3d4e9be (diff)
fl_curve uses a much better algorithim to figure out how many pieces
to cut the curve into. Right-ctrl does not delete selected text in Fl_Input, until you type a composed character. Added simple fltk.3 and fluid.1 manual pages and "make install" in the documentation directory installs them. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input.cxx')
-rw-r--r--src/Fl_Input.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx
index 68a4b4ee6..c4950f4d9 100644
--- a/src/Fl_Input.cxx
+++ b/src/Fl_Input.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Input.cxx,v 1.10.2.14 2001/01/22 15:13:39 easysw Exp $"
+// "$Id: Fl_Input.cxx,v 1.10.2.15 2001/01/28 06:57:33 spitzak Exp $"
//
// Input widget for the Fast Light Tool Kit (FLTK).
//
@@ -81,8 +81,9 @@ int Fl_Input::handle_key() {
return 1;
}
- replace(position(), del ? position()-del : mark(),
- Fl::event_text(), Fl::event_length());
+ if (del || Fl::event_length())
+ replace(position(), del ? position()-del : mark(),
+ Fl::event_text(), Fl::event_length());
return 1;
}
@@ -276,5 +277,5 @@ Fl_Input::Fl_Input(int x, int y, int w, int h, const char *l)
}
//
-// End of "$Id: Fl_Input.cxx,v 1.10.2.14 2001/01/22 15:13:39 easysw Exp $".
+// End of "$Id: Fl_Input.cxx,v 1.10.2.15 2001/01/28 06:57:33 spitzak Exp $".
//