Fix bug when allowDecimals is false

Disallow direct input of "." and "," if allowDecimals is false.
Only "-" and numbers are allowed.
Changed version to 1.3.3.
Fixed some indenting.