Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Android: Click on Search icon on the keyboard - PressKeyCode is not working #265
In Android on my application, I've a Search icon on the keyboard which will be tapped by the user once when the user sends any value to the text field.
To automate this, I've tried the following:
Both are not working. Then I was going through the code written by the developer and came across this:
while debugging, the actionId is 3 which is EditorInfo.IME_ACTION_SEARCH. So the KeyEvent is never been called. How do we handle this situation? I don't think the java-client has any capability for EditorInfo actions, do we?
This allowed me to find a text field, input some text, and submit a search command (same as clicking the search icon in the keyboard). Of course, you have to replace