Can we simulate a key press without an event handler?
window.find(…)
does that.
In general, you're out of luck though trying to orchestrate native browser functionality from within a webpage. Browser extensions can do more.
How to simulate keypress with a button click on Javascript?
I believe this is answered in this Stackoverflow thread: Is it possible to simulate key press events programmatically?.
To add it to the textbox you can listen to the keydown event and add the character accordingly.
Related Topics
How to Download Fetch Response in React as File
Prevent a White Space in the Beginning of a Input
How to Check If Input File Is Empty in Jquery
How to Kill a Running Process on Windows from Nodejs
Read Lines of a Txt File and Organize in a Json File
How to Download a Base64-Encoded Image
Is It Any Limit for Post Data Size in Ajax
Why Does This Onclick Event Not Work in an HTML Iframe
How to Import the Following Function in Another File
How to Get the Value by a Key from a Super Nested Json
How to Remove Forward and Backward Slashes from String in JavaScript
Regex: Match a Word With Exactly One Occurrence of a Specified Character At the Beginning
How to Save .Xlsx Data to File as a Blob
How to Create Expand/Collapse Function for Each Row of Table - Angular6
How to Find Object in a List of Items by Index Using Es6 (Reactjs)
Display Current Date in Dd/Mm/Yyyy Format