JQuery Numeric Keypad Remap Plugin

Is there a jQuery plugin for reassigning a "dot" on the numeric keypad? The goal is to make it print the decimal separator, not the dot, in languages โ€‹โ€‹that use commas or other characters. I would like to imitate the behavior of some desktop applications such as MS Excel.

(Itโ€™s good to write down the output character).

0
source share
2 answers

With this jQuery plugin, you can configure which character to use for the numpad decimal separator.

NumpadDecSeparator

+2
source

, , keyup.

$(":input")โ€‹.bind({
    "keyup" : function (e) {
        if (e.keyCode==110) {
            e.currentTarget.value = e.currentTarget.value.replace(/\./g,",")
        }
    }
    })โ€‹
0

Source: https://habr.com/ru/post/1754376/


All Articles