View Full Version : Space Key Event in CellEditing

25 Sep 2013, 4:25 AM

i need a key pressed event (space key) in the cell editing plugin. So i have overriden the plugin;

Ext.override(Ext.grid.plugin.CellEditing, {

onKeyPress: function(e, t) {
console.log("onKeyPress = " + e.getKey());
onSpecialKey: function(ed, field, e) {
console.log("onSpecialKey = " + e.getKey());

console.log("key = " + e.getKey());


The method onKeyPress is never been called.
The onSpecialKey is called when i press ENTER / TAB / END Keys but not when i press the SPACE key.
I need a way to get recognize a SPACE key pressed.

27 Sep 2013, 11:12 AM
FYI, plugin uses CellEditor - a descendant of Editor, that is container for a Field.
Space is handled by field itself. You may try to setup listener directly on it, or override initComponent for CellEditor and attach listener here.