Client requires to programmatically press Keyboard keys like "C", "Ctrl", "Shift", "5", etc.
I have checked some APIs but only handing of key presses are available. Example :
.keypress()
Are there available functions which can mimic this behavior?
[Updated Code]
$("#input").focus();
window.crossBrowser_initKeyboardEvent("keypress", {"key": 1, "char": "!", shiftKey: true});
My goal in the updated code is to focus a textfield and trigger keypresss such that the character I want to show is shown ion the textfield. But, the above code is not working also.