javascript - Extjs 3.4 get Key value on comboBox key events -


i want identify key pressed on keyup keydown or other event on combo box. have set enablekeyevents: true, in config file , added event handler.

this.a.on('keyup', this.onakeypress, this); 

and function

onakeypress: function(e){         console.log(e.getkey());     }, 

and error, e.getkey() not function in firebug. in extjs documentation said http://docs.sencha.com/extjs/3.4.0/#!/api/ext.eventobject e has function getkey(), problem be?

keyup event has 2 options: element , event object, 2nd argument.

see http://docs.sencha.com/extjs/3.4.0/#!/api/ext.form.combobox-event-keyup

so on case:

onakeypress: function(combo, event) {     console.log(event.getkey()); }, 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -