From be101a57e6aeacf6a1f6fe8015ba48af8809facf Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Mon, 20 Sep 1999 04:27:24 +0000 Subject: Fl_Repeat_Button removes the timeout if it is deactivated or hidden while it is still held down. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@739 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Repeat_Button.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Fl_Repeat_Button.cxx b/src/Fl_Repeat_Button.cxx index c2e7da0ea..159a85593 100644 --- a/src/Fl_Repeat_Button.cxx +++ b/src/Fl_Repeat_Button.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Repeat_Button.cxx,v 1.4 1999/01/07 19:17:25 mike Exp $" +// "$Id: Fl_Repeat_Button.cxx,v 1.4.2.1 1999/09/20 04:27:24 bill Exp $" // // Repeat button widget for the Fast Light Tool Kit (FLTK). // @@ -38,6 +38,8 @@ void Fl_Repeat_Button::repeat_callback(void *v) { int Fl_Repeat_Button::handle(int event) { int newval; switch (event) { + case FL_HIDE: + case FL_DEACTIVATE: case FL_RELEASE: newval = 0; goto J1; case FL_PUSH: @@ -59,5 +61,5 @@ int Fl_Repeat_Button::handle(int event) { } // -// End of "$Id: Fl_Repeat_Button.cxx,v 1.4 1999/01/07 19:17:25 mike Exp $". +// End of "$Id: Fl_Repeat_Button.cxx,v 1.4.2.1 1999/09/20 04:27:24 bill Exp $". // -- cgit v1.2.3