Created
May 27, 2010 21:06
-
-
Save billdawson/416351 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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