I'm looking for a way to simulate keypress
of% via javascript to create an exclamation point shift + 1
for a series of tests (specs) in a framework in which I'm involved.
I have used a framework (Syn) , jsFiddle example , but I can not get through it / trigger the event of a keypress !
.
According to the documentation would be:
Syn.type('JavaScriptMVC[shift]1[shift-up]', 'elementID')
But I was not successful in detecting shift + 1
in the event.
Is there another way to use "pure" javascript?
I tried using this answer in the unsuccessful OS and realized that .shiftKey == true
is deprecated and I did not find another way .