Page 1 of 1

Send keys to currently focused input

PostPosted: Wed Jul 28, 2021 12:12 pm
by cowmoogun
Hey guys, so I have a situation where just setting the value of an input field does not work correctly. So instead, I use a mouse event to click on that field to gain focus and then attempt to use a Keydown, Char, and Keyup events in that order to simulate sending a value through the keyboard, but this does not work, the input field loses focus as soon as I attempt. Anyone else come across this behavior before and know the solution?

Re: Send keys to currently focused input

PostPosted: Wed Jul 28, 2021 2:06 pm
by amaitland
Did you give the ChromiumWebBrowser instance focus? How does it behave if you use google.com?

Re: Send keys to currently focused input

PostPosted: Wed Jul 28, 2021 2:09 pm
by amaitland
Looks like you have already asked at https://stackoverflow.com/questions/685 ... cial-cases

Please continue the conversation there rather than starting a new thread.