On Fri, Apr 29, 2011 at 2:21 PM, Evan Laforge <[email protected]> wrote:
> Here's another one I just found:
>
> When arrow keys are pressed on my macbook, Fl::event_state() claims
> numlock is down.  This happens with the current HEAD.

I think I got this one.  Simply delete this line from
Fl_cocoa.mm:/mods_to_e_state:

  if ( mods & NSNumericPadKeyMask ) state |= FL_NUM_LOCK;

The documentation at
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html
says that NSNumericPadKeyMask indicates that the key is on the numeric
keypad, *not* that NumLock is down.

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

Reply via email to