희망이 당신이
function (e, inputElement) {
// If the user gives the textbox any keyboard input, mark the input box as "dirty"
var scope = this;
var k = e.which;
// Verify that the key entered is not a special key
if (k == 20 /* Caps lock */
|| k == 16 /* Shift */
|| k == 9 /* Tab */
|| k == 27 /* Escape Key */
|| k == 17 /* Control Key */
|| k == 91 /* Windows Command Key */
|| k == 19 /* Pause Break */
|| k == 18 /* Alt Key */
|| k == 93 /* Right Click Point Key */
|| (k >= 35 && k <= 40) /* Home, End, Arrow Keys */
|| k == 45 /* Insert Key */
|| (k >= 33 && k <= 34) /*Page Down, Page Up */
|| (k >= 112 && k <= 123) /* F1 - F12 */
|| (k >= 144 && k <= 145)) { /* Num Lock, Scroll Lock */
return false;
}
else {
scope.setPointValueDirtyStatus(inputElement, true);
}
}
당신은 키 press.For 예에 조건을 사용할 수 있습니다 도움이 될 것입니다. – Sasidharan
고마워 ... 너 더 설명해 줄 수 있니? – Sujeeth
http://www.foreui.com/articles/Key_Code_Table.htm. 모든 키 코드를 볼 수 있습니다. + 또는 - keydown.if에 대한 핸들러가 있습니다. 누르거나 다른 값을 무시하십시오. – Sasidharan