'How to add listener on "Enter" button in the virtual keyboard?
Instead of hiding keyboard I would like to tight an action listener to the Enter button. To my understanding, it might have different behavior on iOS and Android, as well as it might be not very reliable.
I will appreciate any suggestions.
Solution 1:[1]
You can use setDoneListener on text components e.g.:
myTextField.setDoneListener(e -> doSomething());
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Shai Almog |
