반응형

/* field 에 keydown 이벤트가 등록되어 있지 않아서 override */
Ext.override(Ext.form.TextField, {
 fireKey : function(e) {
  // To do : 요기다가 등록.
 }
 , initEvents : function() {
  this.el.on("focus", this.onFocus,  this);
  this.el.on("blur", this.onBlur,  this);
  
  // 필요한 부분은 등록해서 사용하면 됨.
  this.el.on("keydown", this.fireKey, this);
 }
});



ㄷㄷㄷ 이벤트가 있었다.. 삽질..
내가 찾는건 이거였다. 엔터 쳤을때... 실행.. ㅠㅠ

passowd_field.on("specialkey", function(el, e){
if(e.getKey() == 13) common_func.form_submit();
});

반응형

'프로그래밍 > Javascript' 카테고리의 다른 글

부모창 = opener  (0) 2009.02.11
자바스크립트 예약어  (0) 2009.02.11
input type text border style  (0) 2009.02.11
자바스크립트 객체지향  (0) 2009.02.11
JavaScript 객체표  (0) 2009.02.11

+ Recent posts