> On 19.10.2011 23:12, David wrote:
> > I have a group box with radio buttons, also some normal buttons, I set the 
> > shortcut on one of the normal buttons as FL_Enter.  My problem is if I have 
> > keyboard focus set to one of the raido buttons and press enter, it just 
> > moves to the next raido button, until the last one, which then does the 
> > Fl_Enter shortcut.  How do I prevent those from eating the Fl_Enter?
>
> Try setting visible_focus(0) on all radio buttons. This
> should probably do what you want (but maybe not). Could you
> please test and report back?
>
> Albrecht

Nope, now no keyboard focus works at all on the radio buttons.  I should be 
able to use the keyboard/spacebar to select.  Then enter to auto click the 
default (normal) button.  I also find a problem where if any of the other 
normal buttons are selected and you press enter, it goes to the default button, 
that is one case where the enter should click that button itself (the one with 
keyboard focus).

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to