Using CefKeyEvent under Linux (GTK)

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

Using CefKeyEvent under Linux (GTK)

Postby gonzobrains » Thu Dec 04, 2014 3:56 pm

Hi,

I want to inspect keys within the ClientHandler::OnPreKeyEvent() method. The docs mention windows_key_code as follows:

http://magpcss.org/ceforum/apidocs3/projects/(default)/_cef_key_event_t.html#windows_key_code

What is this defined as under GTK? Is it even relevant? Should I use native_key_code instead? If so, where do I find the list of native codes?

Thanks,
gonzobrains
gonzobrains
Techie
 
Posts: 15
Joined: Tue Nov 04, 2014 11:44 am

Re: Using CefKeyEvent under Linux (GTK)

Postby gonzobrains » Thu Dec 04, 2014 4:23 pm

I'm looking at cefclient_osr_widget_gtk.cpp and it appears it gets populated by the hardware_keycode in GdkEventKey. Can anyone confirm?
gonzobrains
Techie
 
Posts: 15
Joined: Tue Nov 04, 2014 11:44 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 40 guests