Skip to content

Instantly share code, notes, and snippets.

@antew
Created February 17, 2013 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antew/4972147 to your computer and use it in GitHub Desktop.
Save antew/4972147 to your computer and use it in GitHub Desktop.
/**
* Perform the login if the user presses the Done key from the
* password field
*/
@Override
public boolean onEditorAction(TextView v, int actionId,
KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_DONE) {
doLogin();
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment