View Full Version : Listening key events in Grid or Cell Editing plugin

12 Dec 2013, 6:32 AM

I have a grid contains some cell editing plugins, what i want to do is to add a listener to capture when a user press special key for example Enter Key and then apply my logic. or make it acts as tab button pressed.

Thanks in advance,
Jamil Isayyed

Gary Schlosberg
12 Dec 2013, 10:49 AM
You can listen for the specialkey (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.Editor-event-specialkey) event. Here's a Fiddle example:

25 Jan 2017, 6:41 AM
This fiddle does not log the enter key event when I run it...

Gary Schlosberg
25 Jan 2017, 2:36 PM
Are you testing on the Name column? For me an ENTER press is caught and logged.

13 Jul 2017, 6:17 AM
but... in this case you are not using "cell editing plugin"...

Gary Schlosberg
13 Jul 2017, 9:14 AM
As far as I can tell, the Fiddle example is using the CellEditing plugin.

13 Jul 2017, 9:42 AM
Sorry... by the way, how can i get the colIdx and rowIdx into the specialkey event? thanks...