Open adriankalinowski95 opened 3 months ago
Your usage of SendKeyEvent may be incorrect. I suggest that you test with cefclient --off-screen-rendering-enabled
to see how the CEF sample app is populating the CefKeyEvent structure.
Note also that SendKeyEvent is currently only tested/supported with off-screen rendering.
Do you have/know any proof of concept of that for screen rendering?
I can confirm this bug on Mac and off-screen rendering. I had this bug a while ago and also tested a SendKeyEvent with manual correctly populated CefKeyEvent struct.
Describe the bug I have problem with sending keyboard event. Always when im doing that I have crash. Result something like that: [0312/110036.722903:FATAL:render_widget_host_view_mac.mm(460)] Check failed: in_keyboardevent.
I was trying many ways to send this event, but always same result.
Sending code:
This code is working on Windows.
Probably, the problem is because ClientApplication is not handling this event.
To Reproduce Send key event via browser->GetHost()->SendKeyEvent(...)
Expected behavior Not crashing
Versions
Additional context I was testing this on cefclient app in reload button: root_window_mac
But its giving same result as in my app.