function KeyPressed(e)
{
var evt = typeof window.event != 'undefined' ? window.event : e;
var val = evt.keyCode == 86;
if (evt.ctrlKey && val)
{ alert(evt.ctrlKey +", "+ val);
if (evt.stopPropagation)
{
evt.preventDefault();
evt.stopPropagation();
}
else
{
evt.cancleBubble = true;
evt.returnValue = false;
}
}
crmForm.all.firstname.attachEvent("onkeydown",KeyPressed);
No comments:
Post a Comment