CEF client : WM_KEYUP is not received after pressing any key

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF client : WM_KEYUP is not received after pressing any key

Postby dpsbhamra » Sat May 20, 2017 12:50 pm

I was running the cefclient using cef version 3.2556.1368 in off-screen-rendering-enabled mode.
When the browser window is open and when i tried to type any character then in the OsrWindowWin::OsrWndProc, window procedure i only receive WM_KEYDOWN and WM_CHAR.
Why WM_KEYUP is not received ?

Ideally on pressing and releasing any key the sequence should be
WM_KEYDOWN
WM_CHAR ( for any printable character ) and after it
WM_KEYUP should be received.

Why is that WM_KEYUP is never received in the window procedure ?
dpsbhamra
Newbie
 
Posts: 2
Joined: Fri Mar 03, 2017 7:07 am

Re: CEF client : WM_KEYUP is not received after pressing any

Postby Czarek » Thu May 25, 2017 12:39 pm

Looks like this is how it works, character messages do not generate WM_KEYUP events. You should see WM_KEYUP events for alt/shift for sure.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 72 guests