Page 1 of 1

HTML control doesn't accept keyboard input

PostPosted: Sun Aug 28, 2011 8:38 pm
by Farooq
Hi All,

In my COCOA application when I set window style mask to NSBorderlessWindowMask, the HTML controls in the HTML page doesn't accept any keyboard input. The onKeyEvent method of CefKeyboardHandler is working properly and it always returns false which is also the default behavior. My application requirement is that window should be borderless. How I can I fix this issue?

Thanks in advance for your help,
Farooq-

Re: HTML control doesn't accept keyboard input

PostPosted: Mon Aug 29, 2011 7:10 am
by magreenblatt
You need to subclass NSWindow in your application and implement the (BOOL)canBecomeKeyWindow: selector. Google "NSBorderlessWindowMask keyboard input" for more info.