SendKeyEvent not recognising modifiers but sends uppercase

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.

SendKeyEvent not recognising modifiers but sends uppercase

Postby BenWoodford » Wed Jul 26, 2017 7:17 am

I have a project using the CefSharp OffScreen library, and I'm trying to get keyboard emulation working.

A breakpoint of the event just before sending using:

Code: Select all
Browser.GetBrowser().GetHost().SendKeyEvent(ev)


would be:

Code: Select all
FocusOnEditableField = false
IsSystemKey = false
Modifiers = ShiftDown
NativeKeyCode = 0
Type = Char
WindowsKeyCode = 53 // '%'


But it will still send 5 despite Shift being down (UK keyboard layout).

If I send a lowercase letter, it will have no modifiers, and the correct key code, but will send an uppercase letter.

Anyone have any ideas on this? It's not making much sense at all really.
BenWoodford
Newbie
 
Posts: 1
Joined: Wed Jul 26, 2017 7:12 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 40 guests