diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-09-20 04:27:24 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-09-20 04:27:24 +0000 |
| commit | be101a57e6aeacf6a1f6fe8015ba48af8809facf (patch) | |
| tree | bc989a812a45b4eeb60c764b312b5585098e9327 /src/Fl_Repeat_Button.cxx | |
| parent | c8794e2f58b4bd0f6d7324546c7492849065ad66 (diff) | |
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
Diffstat (limited to 'src/Fl_Repeat_Button.cxx')
| -rw-r--r-- | src/Fl_Repeat_Button.cxx | 6 |
1 files 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 $". // |
