• Resolved kelta74

    (@kelta74)


    Hello,

    (PPOM) in number field on macintosh not allowed zero.
    Can you help me please!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 16 through 18 (of 18 total)
  • Seems as though there is no simple solution for number input fields. There has been a long protracted discussion about web browsers blocking non-numeric characters natively for number input fields for several years.

    Additionally, when non-numerical characters are entered the field value becomes invalid and unreadable by JavaScript. There is no simple solution for replacing non-numerical characters after they have been entered into number input fields; only preventing them from being entered.

    As far as your problem goes, the only solution is to figure out why a QWERTZ keyboard is not properly mapping the 0 character as a digit. Although I have tested it with a virtual QWERTZ keyboard layout and it worked just fine for me on your website.

    If you are in a bind and need it right now just remove that entire case "number" from the switch in the loop.

    Thread Starter kelta74

    (@kelta74)

    Thanks!
    It has been tested on another macbook as well and is good for that.
    My old machine (OS X Yosemite Version 10.10.5 (14F2511)), the “?” key has event.code Digit0, I dont no why.

    event.key
    ?

    event.which
    48

    even.code
    Digit0

    • This reply was modified 4 years, 9 months ago by kelta74.

    Thanks @brozra for sharing info against this topic ??

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘in number field on macintosh not allowed zero’ is closed to new replies.