Hi, thanks for the prompt reply.

Meanwhile I have been digging around and found the solution: In Cocoa the 
borderless window is not meant to be used for keyboard input, so by default the 
window will not get keyboard focus at all. To override it people are 
reimplementing one method to enable keyboard focus. I have changed the file 
src/Fl_cocoa.mm and addet into @implementation FLWindow the method

- (BOOL)canBecomeKeyWindow {
   return YES;
}

I start using it and if I'll get new trouble somewhere because of it then I'll 
let you know.



>
> > I am experiencing issue of getting keyboard focus to borderless
> > Fl_Double_Window under Mac OS X v 10.5.8. The window does have one
> > Fl_Text_Input widget. I am unable to enter text there. If I make the
> > window to have border, it will have the keyboard focus and I can enter
> > text into the entry.
>
>
> > =
>
> > I have tested it on W7 (fltk 1.3.0) and it gets focus
> > I have tested it on Mac OS X (fltk 1.3.0) and it does not get focus
> > I have tested it on Linux (fltk 1.1.10) and it gets focus
> > =
>
> > Please help how can I get the focus working on Mac. Thanx.
>
> OK - never seen that; might be best to file an STR as I believe that's an u=
> nknown bug...
>
> In the short term, maybe Manolo will have some suggestions, he's the best b=
> et for OSX questions.
>
>
>
> SELEX Galileo Ltd
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS=
> 14 3EL
> A company registered in England & Wales.  Company no. 02426132
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>

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

Reply via email to