You can attach an event handler to onKeyPress event or individual keys, like onKeyUp, onKeyDown etc. Full list is here -
http://www.activewidgets.com/aw.system.control/control-keyboard-events.html
You should also return non-zero rezult to cancel a default action defined in the tree selection controller.
In fact, the tree does not have its own selection and keyboard navigation controller - in 2.0 it simply inherits the one from the AW.UI.List control (that's why it does not work).
If you want to fix it - you should look at /source/lib/ui/_single.js (kb mapping) and /source/lib/ui/_actions.js (selection/navigation implementation) and adjust them for the tree.
On of the problem in the current tree - the parent node index is missing from the view (or item) model, so it should be added (and probably calculated from the view/indices and view/count or vice versa).
This topic is archived.