Handling events for keystrokes or keys in a grid

How to handle these events in the grid?

Obvious solutions like

grid.on('keypress', handler);  

or

listeners: { keypress: handler }  

does not work - the handler does not start.

What am I missing?

+3
source share
2 answers

Got this:

grid.view.addElListener('keypress', function() {
    ...
});

PS: also formed it as a split mesh plugin: https://gist.github.com/2572486

+3
source

You can try the itemkeydown event Ext.grid.View.

+1
source

All Articles