PDA

View Full Version : [FNR] GXT 1.2.3 & Firefox not getting specialKey event in EditorGrid



chrismcnally
7 May 2009, 8:44 AM
I am trying to catch the down arrow key in the editor grid and I can do this in IE and in Hosted Mode, but in Firefox my handler is not called for the down arrow or up arrow keys. Tab is working:


editField = new NumberField();
CellEditor ce = new CellEditor(editField);
ce.addListener(Events.SpecialKey, new Listener<DomEvent>() {;
public void handleEvent(DomEvent e) {
Log.logger.debug("SPECIAL KEY " + e.getKeyCode());
}
});
colConfig.setEditor(ce);

In firefox, this is only triggered by the tab key, in IE and Hosted Mode, it works.

sven
7 May 2009, 8:53 AM
Thanks for reporting. Fixed in SVN.

chrismcnally
7 May 2009, 11:18 AM
Thanks so much for the quick response! I would like to incorporate this, did you fix the 1.2.4 release or just 2.0. Can you give me the url for checking out the 1.2.4 release and/or the diff I can use to patch my copy? I have been checking out the trunk but trunk is now the 2.0 release it seems

sven
7 May 2009, 11:25 AM
It is fixed in SVN, so not in 1.2.4. You can find it under "releases/1.2"