27 Jun 2014, 12:57 AM
Prevent Special Characters
Originally Posted by mitchellsimoens
Thanks mitchellsimoens , but is there any way to prevent special characters like ( ! & %) ?
pattern : '[0-9]*' and keyCode's that you wrote is not working for special characters in Ext.field.Text Sencha touch.
Thanks for that example code. I extended it, but got issues with special chars like ä, ö, ü
ä returns code 222 (although ascii tables list it with code 230)
' does also return code 222 (although ascii tables list it with code 39)
ö returns code 186 (should be 156)
: returns code 186 (should be 58)
Same for some others keys. Is there any way to handle this?