I am entering the password field values from devices with physical keyboards (like the emulator and ChromeOS). I need to ignore when the user presses TAB or ENTER (or other special) keys, so that it is not entered directly into the text.
I would like to match the behavior of a standard AlertDialog password prompt, where pressing Enter on the physical keyboard submits the password. So, is there any better way to ignore control keys?