On 01.03.2011 20:25, Mike Werner wrote:

> Fl::option(OPTION_ARROW_FOCUS, 0);  is incorrect syntax.

sorry, this must be:

Fl::option(Fl::OPTION_ARROW_FOCUS, 0);

Please try this instead.

Anyway: all you do with these global options might not work as you
expect if an input widget or a button has focus, because this
widget will get the input *before* it is propagated as FL_SHORTCUT
event to all other widgets. Usually all input widgets /should/ handle
the arrow keys to move the cursor /within/ the text, but maybe not
the up/down arrow keys. Which keys do you want to define as shortcuts?

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

Reply via email to