Should prevent default since it is handled

This commit is contained in:
斟酌 鵬兄 2016-02-07 05:42:30 +08:00
parent 18770d4b0d
commit d8736696db
1 changed files with 2 additions and 0 deletions

View File

@ -32,10 +32,12 @@
if ( no && code == 27 )
{
e.preventDefault();
_no.click();
}
else if( code == 13 && ( e.ctrlKey || e.altKey ) )
{
e.preventDefault();
_yes.click();
}
}