HTML control doesn't accept keyboard input

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

HTML control doesn't accept keyboard input

Postby Farooq » Sun Aug 28, 2011 8:38 pm

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-
Farooq
Techie
 
Posts: 15
Joined: Tue Jun 21, 2011 8:52 pm

Re: HTML control doesn't accept keyboard input

Postby magreenblatt » Mon Aug 29, 2011 7:10 am

You need to subclass NSWindow in your application and implement the (BOOL)canBecomeKeyWindow: selector. Google "NSBorderlessWindowMask keyboard input" for more info.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 20 guests