diff options
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_Button.cxx | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -1,6 +1,8 @@ CHANGES IN FLTK 1.3.1 + - Fixed regression (in FLTK 1.3.0) that could clear a radio + button by using the keyboard (space or shortcut) (STR #2748) - Fixed fl_pie() drawing too small on X11 (STR #2703) - Fixed Fl_Menu issue with unusual menu flags (STR #2680) - Fixed Windows DLL import of fl_xid() (STR #2670) diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx index 07daca9b4..33196ad8d 100644 --- a/src/Fl_Button.cxx +++ b/src/Fl_Button.cxx @@ -145,9 +145,11 @@ int Fl_Button::handle(int event) { set_changed(); triggered_by_keyboard: Fl_Widget_Tracker wp(this); - if (type() == FL_RADIO_BUTTON && !value_) { - setonly(); - if (when() & FL_WHEN_CHANGED) do_callback(); + if (type() == FL_RADIO_BUTTON) { + if (!value_) { + setonly(); + if (when() & FL_WHEN_CHANGED) do_callback(); + } } else if (type() == FL_TOGGLE_BUTTON) { value(!value()); if (when() & FL_WHEN_CHANGED) do_callback(); |
