Input.dispatchKeyEvent keyCode is always 0

Skip to first unread message

Ben Bracha

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

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

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
To view this discussion on the web visit
Reply all
Reply to author
0 new messages