function Numeric_Text_KeyDown(event) { var iKeyCode = event.keyCode; //alert(iKeyCode); if ( (event.ctrlKey) || (event.altKey)) return false; if (iKeyCode == 38 || iKeyCode == 40 || iKeyCode == 13 || iKeyCode == 9 || iKeyCode == 8 || iKeyCode == 46 ||iKeyCode == 39 ||iKeyCode == 37 || iKeyCode == 229 ||((iKeyCode > 47 && iKeyCode < 58) && !(event.shiftKey) ) || (iKeyCode > 111 && iKeyCode < 124) ||(iKeyCode > 95 && iKeyCode < 106)) { if (iKeyCode == 38 || iKeyCode == 40 || iKeyCode == 13 || iKeyCode == 9) { return true; } else if((iKeyCode > 47) && (iKeyCode < 58)){ return true; } } else { return false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)