0

I'm trying to trigger key events in the Chrome console but nothing seems to work.

I want to trigger any of the arrow keys programmatically (for an experiment).

I've tried this (among many other things)

window.dispatchEvent(new Event('keypress', {keyCode: 39}))

The game code is pretty short.

http://2048game.com/

Any suggestions?

gatzkerob
  • 877
  • 2
  • 12
  • 32

0 Answers0