I asked a similar question but it seems maybe I did not get what I really need.
The last question: here
My goal:
I am writing a record and replay Chrome extension, I have recorded user`s keyboard press and now I need to replay it.
I have a list of keyCodes:
[42, 43, 0, 11...]
I need to simulate a keyboard press for each one on the document.activeelement
* If regular char - add it to the input \ textarea value, if backspace delete prev char, if delete - delete next char, if arrows - move the selector right \ left and etc.. (I expect normal behavior as I would press the same key)
As I mentioned in the last question - I tried many options and I added code samples. but it seems I am not understanding yet what I am really need to do for that result.