> Though what should it do? I suppose the button should appear in
> the "down" state as long as the space bar is held down?

   Seems reasonable.

   Firefox is usually a good cross-platform example to go by.

   On my linux machine, Firefox>Edit>Preferences brings up a window
   with buttons; if I use keyboard nav to focus on one of the buttons,
   hitting 'space' causes the button to visually 'push down',
   and it stays down until I release the key, at which point
   the callback is invoked.

   It's interesting to note that FLTK's keyboard nav is different;
   Firefox invokes the callback on spacebar *release*, whereas
   FLTK invokes the callback on spacebar *down*. This might be
   why FLTK will auto-repeat the button if the key is held down
   into auto-repeat, while in firefox that doesn't happen.

   Either way, having the button show as 'down' when the key
   is hit seems reasonable.. similar to what FLTK's radio and
   checkbox buttons do.

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

Reply via email to