InputField.setAllowedCharacters

It will discard any characters from keyboard that aren't in this list.

class InputField
void
setAllowedCharacters

Meta