allowedCharPattern
A pattern matched against individual characters the user inputs.
When set, the field will prevent:
keydownevents if the entered key doesn't match/^allowedCharPattern$/pasteevents if the pasted text doesn't match/^allowedCharPattern*$/dropevents if the dropped text doesn't match/^allowedCharPattern*$/
For example, to allow entering only numbers and minus signs, use: allowedCharPattern = "[\\d-]"