View Full Version : keymap on contextmenu

25 Nov 2007, 4:52 AM
Whats the best approach to hiding and stopping events on a context menu after an assign keymap is activated?

Should I just reselect the tree node in the keymap function?
or Hide and suspendEvents which I would have to reactivate, when the menu is shown?

User Steps:
1. User right clicks treenode.
2. Menu pops up
3. User presses assigned keymap a
4. Event is fired treenode expands
(Menu is currently visable and active)

Now I want the menu to hide and all events on menu to stop until menu is reactivated with event contextmenu :)
It believe it could be achieved by either method of the above but being picky Im not sure which to choose or if either are correct :">