PDA

View Full Version : Key events in TreePanels



fusioned
20 May 2007, 7:55 AM
Hi, I'm wondering if it is possible for key events to be triggered in TreePanels / tree nodes, as for example, I would like the possibility of being able to (a la explorer) press F2 to trigger the rename process.

I cannot find anything relevant in the docs, unless I've missed something.

jsakalos
20 May 2007, 9:04 AM
Try to look at Ext.KeyMap and Ext.KeyNav classes.

fusioned
20 May 2007, 2:02 PM
Yes, I spotted these afterwards, thank you for the tip anyway.

Whilst testing this, I'm wondering how the browser determines which element gets the keypress event. I'm guessing that it just bubbles from the window upwards until it finds an element with the appropiate event handler?