Fixed regression (in FLTK 1.3.0) that could clear a radio button by
using the keyboard (space or shortcut) (STR #2748). This regression was introduced in svn r7826 and released with FLTK 1.3.0 (!) to add visual feedback for Fl_Button's using the keyboard (STR #2372). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9149 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
8c552b377d
commit
afd64de007
2
CHANGES
2
CHANGES
@ -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)
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user