Prevent non-numeric characters from being entered

This is an enhancement for PR #88 and will prevent non-numeric characters from being entered into the field in the first place.