seamas
1 Apr 2012, 11:00 PM
var tree = Ext.create('Ext.tree.Panel', {
cls: 'my-cool-tree',
useArrows: true,
dockedItems : [ {
xtype : 'toolbar',
items : [ {
xtype : "textfield",
fieldStyle : 'border:1',
enableKeyEvents : true ,
hideLabel : true,
listeners : {
keypress : function(e, t, opts) {
alert(e)
alert( e.getKey() );
}
}
} ]
} ] });
The alert(e) input object ,
but the e.getKey() get error message :e.getKey() is not a function
Please help
cls: 'my-cool-tree',
useArrows: true,
dockedItems : [ {
xtype : 'toolbar',
items : [ {
xtype : "textfield",
fieldStyle : 'border:1',
enableKeyEvents : true ,
hideLabel : true,
listeners : {
keypress : function(e, t, opts) {
alert(e)
alert( e.getKey() );
}
}
} ]
} ] });
The alert(e) input object ,
but the e.getKey() get error message :e.getKey() is not a function
Please help