Input.dispatchKeyEvent keyCode is always 0

41 views
Skip to first unread message

Ben Bracha

unread,
Aug 31, 2023, 2:00:12 PM8/31/23
to chrome-debugging-protocol
Hi,

I'm trying to simulate different keyboard keys (like arrows and escape) for interfaces that use keycode in their event handlers.
But no matter what "code" I put on the message, it is always 0.

Does anyone experience such a thing?

Ben Bracha

unread,
Sep 1, 2023, 8:47:35 AM9/1/23
to chrome-debugging-protocol
Found a way to control keyCode, need to set windowsVirtualKeyCode on the dispatchKeyEvent

--
You received this message because you are subscribed to the Google Groups "chrome-debugging-protocol" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-debugging-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chrome-debugging-protocol/12183e9a-f4bd-4892-9021-0f4c18a64238n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages