Correction:

On 06.04.2013 02:10, Albrecht Schlosser wrote:

[... about compiling and running program #1]
...
> event = FL_KEYDOWN ... caps lock 9
> event = FL_KEYUP ... caps lock 10
> event = FL_KEYDOWN ... caps lock 11
> event = FL_KEYUP ... caps unlock 12
>
> You can see (or guess) that the CAPS LOCK state is updated *before*
> the handle message is called on FL_KEYDOWN events, if CAPS LOCK is
> being turned ON, but *after* the FL_KEYDOWN event, if it is turned
> OFF. That's why the program shows the "caps unlock" message only on
> FL_KEYDOWN events.

The last line should read: "FL_KEYUP events.", of course.

Albrecht

_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to