View Full Version : Key events in TreePanels
fusioned
05-20-2007, 11: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
05-20-2007, 01:04 PM
Try to look at Ext.KeyMap and Ext.KeyNav classes.
fusioned
05-20-2007, 06: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?
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.