1.输入框 onkeydown事件
<input type="file" name="fileSelect" size="52" id="fileSelect"
οnkeydοwn="return preventFormEditToInputFile(event);" />
2.jQuery方法
function preventFormEditToInputFile(event){
var keycode;
if (event.which) {
keycode = event.which;
}
if ( keyCode == 13 ) {
return false;
}
return true;
}