Prefer use "which" instead of "keycode"

This commit is contained in:
Michael RICOIS 2013-10-21 16:48:51 +00:00
parent e1b7eb3a24
commit f5f84a9be0

View File

@ -14,7 +14,7 @@ $(document).ready(function(){
$(this).html('Chargement...');
$(this).load(href);
$('#dialogsurv').keypress(function(e){
if (e.keyCode == 13){
if (e.which==13){
e.preventDefault();
survSubmit();
}