修改在页面中按回车bug

pull/7/head
xiaowu 2014-11-01 12:59:44 +08:00
parent 58993471fb
commit 3d97291553
1 changed files with 3 additions and 1 deletions

View File

@ -832,7 +832,9 @@ Dates.events = function(){
}).on(doc, 'keydown', function(event){
event = event || win.event;
var codes = event.keyCode;
if(codes === 13){
//如果在日期显示的时候按回车
if(codes === 13 && Dates.elem){
Dates.creation([Dates.ymd[0], Dates.ymd[1]+1, Dates.ymd[2]]);
}
});