From 9fb0e368587b784924b429076f546b5749593204 Mon Sep 17 00:00:00 2001 From: Stoyan penchev Date: Wed, 21 Sep 2016 00:31:30 +0300 Subject: [PATCH] Update jquery.knob.js The decimal . does not work from the numpad keyboard. The porposed changes eliminate that issue. --- js/jquery.knob.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/jquery.knob.js b/js/jquery.knob.js index 792313c..3275dbb 100644 --- a/js/jquery.knob.js +++ b/js/jquery.knob.js @@ -620,7 +620,13 @@ if (kc >= 96 && kc <= 105) { kc = e.keyCode = kc - 48; } - + + //decimal point from numpad support - + //replace key code of decimal numpad with normal "period + if (kc == 110) { + kc = e.keyCode = 190; + } + kval = parseInt(String.fromCharCode(kc)); if (isNaN(kval)) {