Skip to content

Instantly share code, notes, and snippets.

@billdawson
Created May 27, 2010 21:06
Show Gist options
  • Save billdawson/416351 to your computer and use it in GitHub Desktop.
Save billdawson/416351 to your computer and use it in GitHub Desktop.
protected boolean keyChar(char arg0, int arg1, int arg2)
{
int key = (int) arg0;
boolean suppress = false;
if (key == Keypad.KEY_ENTER) {
if (proxy.hasDynamicValue("suppressReturn")) {
suppress = TiConvert.toBoolean(proxy.getDynamicValue("suppressReturn"));
}
}
if (suppress) {
return true;
} else {
return super(arg0, arg1, arg2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment