日期:2014-05-16 浏览次数:20386 次
//过滤浏览器backspace字段
??? ???? ??? Ext.getDoc().on('keydown',function(e){
??? ???? ??? ??? if(e.getKey() == 8 && e.getTarget().type =='text' && !e.getTarget().readOnly){
??? ???? ??? ??? ???
??? ???? ??? ??? }else if(e.getKey() == 8 && e.getTarget().type =='textarea' && !e.getTarget().readOnly){
??? ???? ??? ???
??? ???? ??? ??? }else if(e.getKey() == 8){
??? ???? ??? ??? ??? e.preventDefault();
??? ???? ??? ??? }
?? ??? ???? ??? ???
});