From abcd0b44882811764557c00c509dd145baf81bb8 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Sat, 10 Jun 2000 21:31:00 +0000 Subject: You can no longer insert ^J,^K,^L,^M into Fl_Int/Float_Input. Fixed bug noticed by Alexander Rabi Beels, if you are in point-to-type and move the cursor to a different window with a multiline input and type up/down, the saved up/down horizontal position from the previous multiline input was used. It now resets this on any focus change, fixing this. Some code cleanup in Fl_Input.cxx, removed unneeded calls to Fl::compose_reset. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index 9543bf3a3..73fa187bb 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.24 2000/06/05 21:20:46 mike Exp $" +// "$Id: Fl.cxx,v 1.24.2.25 2000/06/10 21:30:59 bill Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -321,6 +321,7 @@ void Fl::focus(Fl_Widget *o) { if (grab()) return; // don't do anything while grab is on Fl_Widget *p = focus_; if (o != p) { + Fl::compose_reset(); focus_ = o; fl_oldfocus = 0; for (; p && !p->contains(o); p = p->parent()) { @@ -720,5 +721,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.24 2000/06/05 21:20:46 mike Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.25 2000/06/10 21:30:59 bill Exp $". // -- cgit v1.2.3