Keypress or keydown event handling in grid
-
05-06-2021 - |
Question
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?
Solution
Got it:
grid.view.addElListener('keypress', function() {
...
});
PS: also formed it as a separated grid plugin: https://gist.github.com/2572486
OTHER TIPS
You can try the itemkeydown event of Ext.grid.View.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow