How to input Unicode letters/characters using SendKeyEvent?

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.

Re: How to input Unicode letters/characters using SendKeyEve

Postby druid » Mon Sep 14, 2020 2:43 pm

magreenblatt wrote:CEF should use your system keyboard layout. Do the cyrillic characters display correctly in cefclient with windowed or OSR mode when you type them with the keyboard?

cefclient is correctly display my cyrillic characters. I was open google search line and enter characters.
druid
Newbie
 
Posts: 8
Joined: Tue Aug 25, 2020 5:04 am

Re: How to input Unicode letters/characters using SendKeyEve

Postby magreenblatt » Mon Sep 14, 2020 2:49 pm

OK, so you need to use the same logic as cefclient for SendKeyEvent.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to input Unicode letters/characters using SendKeyEve

Postby druid » Tue Sep 15, 2020 1:36 am

magreenblatt wrote:OK, so you need to use the same logic as cefclient for SendKeyEvent.

thank for your help, but i don t understend how is right to do trough programm method input, because cefclient not provide his logic or logs of input events. where i can get example of input unicode characters?
druid
Newbie
 
Posts: 8
Joined: Tue Aug 25, 2020 5:04 am

Re: How to input Unicode letters/characters using SendKeyEve

Postby magreenblatt » Tue Sep 15, 2020 9:10 am

You can’t just input unicode characters. You need to input the correct character codes relative to the current locale. The cefclient OSR code includes relevant code examples.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to input Unicode letters/characters using SendKeyEve

Postby druid » Tue Nov 24, 2020 4:45 am

magreenblatt wrote:You can’t just input unicode characters. You need to input the correct character codes relative to the current locale. The cefclient OSR code includes relevant code examples.

I cant find this code examples. Can you show me this code examples, please. Or link. Thanks
druid
Newbie
 
Posts: 8
Joined: Tue Aug 25, 2020 5:04 am

Re: How to input Unicode letters/characters using SendKeyEve

Postby rado » Tue Nov 24, 2020 12:28 pm

Just start cefclient in debugger and place breakpoint to method
Code: Select all
ClientHandler::OnPreKeyEvent
or place some code logging there so see proper content of CefKeyEvent object.
rado
Expert
 
Posts: 145
Joined: Wed Oct 05, 2011 3:32 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 93 guests