From dd22e56dada81ab4ce01e874ae973dcfbd672f6f Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Fri, 28 Sep 2012 16:20:03 -0400 Subject: [PATCH] Add keyCode 189 for the "-" character in IE, for the negative numbers on currency fields --- gulliver/js/form/core/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulliver/js/form/core/form.js b/gulliver/js/form/core/form.js index 391a3851f..cdf1f89cd 100755 --- a/gulliver/js/form/core/form.js +++ b/gulliver/js/form/core/form.js @@ -1192,7 +1192,7 @@ function G_Text(form, element, name) break; default: if (me.mType == 'date' || me.mType == 'currency' || me.mType == 'percentage' || me.validate == 'Real' || me.validate == 'Int') { - if ((48 <= pressKey && pressKey <= 57) || (pressKey == 109 || pressKey == 190 || pressKey == 188) || (96 <= pressKey && pressKey <= 111)) { + if ((48 <= pressKey && pressKey <= 57) || (pressKey == 109 || pressKey == 190 || pressKey == 188 || pressKey == 189) || (96 <= pressKey && pressKey <= 111)) { return true; } else {