> Like the subject says, I no longer get FL_KEYDOWN and FL_KEYUP for
> modifiers.  Looking around in the file, it looks like it's just not
> implemented, mods_to_e_keysym is never called.

Yes, I now see with the keyboard demo that pressing just a
modifier key (shift, alt, meta) does not seem to be reported as it does
under carbon-FLTK.

>
> Unless there's some patch already being prepared for it, I'd like to
> take a shot at implementing it myself.

Good. Please, consider that cocoaKeyboardHandler is not a simple thing.
I'm progressing on repairing the one-pixel and zero-pixel clip
error you have reported.

>
> Also, and this is mostly to Manolo since I guess he's the de-facto
> owner at this point, the file is kind of big at 3300 lines and a bit
> messy.  Would you mind if I sent some clean up patches?  I'm thinking
> of normalizing formatting to fltk standards, and then splitting it out
> into e.g. Fl_cocoa_keyboard.mm, Fl_cocoa_mouse.mm, etc.  Some things
> like the fd select stuff can probably go in generic Fl_mac.cxx, unless
> the plan is to remove that entirely.

Fl_cocoa.mm is presently a single file just as Fl_mac.cxx, and they
have comparable sizes.

> I think it's probably pretty safe to make 1.3 OS X only.

Do you mean cocoa only ? FLTK is already OS X only (as opposed to OS 9).


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

Reply via email to