How to handle those events in grid?
Obvious solutions like
grid.on('keypress', handler);
or
listeners: { keypress: handler }
don't work - handler is not being triggered.
What am I missing?
How to handle those events in grid?
Obvious solutions like
grid.on('keypress', handler);
or
listeners: { keypress: handler }
don't work - handler is not being triggered.
What am I missing?
Got it:
grid.view.addElListener('keypress', function() {
...
});
PS: also formed it as a separated grid plugin: https://gist.github.com/2572486
You can try the itemkeydown event of Ext.grid.View.