browsh-org/browsh

Passing keys doesn't work

Open

#221 ouverte le 28 sept. 2018

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)JavaScript (455 forks)batch import
bughelp wantedtty-mode

Métriques du dépôt

Stars
 (15 996 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

I'm using this as a testcase: https://www.w3schools.com/graphics/tryit.asp?filename=trygame_controllers_keys

The arrow keys should move the red rectangle around, but it's not working.

And if you try to edit the code to the left of the game, it seems all you can do is to delete characters with backspace or to insert line breaks with enter, normal characters don't get registered. And the changes to the text only become visible with some delay.

Do we need to use Firefox's marionette protocol to make the passing of input events truly robust? The downside would be that this would tie Browsh even more to Firefox.

Maybe all of these issues are fixable in the webextension.

One more testcase: http://www.gaminglogy.com/tutorial/controls-keyboard/demo/index.html (the sprite is supposed to get moved by the ASDW keys)

Please contribute further testcases to this bug report.

Guide contributeur