Board Logo

using keyboard
giladfit - 9/27/2004 at 08:04 AM

How can I use the keyboard in the tree? and I mean in explorer like for up/down arrows + right for expand and left for collapse?

Additional related question is the ability of performing keyboard search (Even only in current level) where the user eneters a letter and the selection is moved to the node starting with this one. Can it be done? if so, how?


rock - 9/27/2004 at 08:57 AM

There is no built in keyboard functionality but I think the feature is possible to implement using the extra event handlers functionality. You could find examples of usage the custom event handler (for right-click handling) at demo6 of your download package. Just assign your event handler to onkeydown event.
To get more information about event handlers and other tree API please refer to product documentation.


giladfit - 9/27/2004 at 12:17 PM

I have entered:
'userTextEvent': {
'oncontextmenu':'return h_context_menu(o_tree_item)',
'onkeydown':'return h_keyDown(o_tree_item)',
'style':'color:000000'
in the example (6), and implemented the method:
function h_keyDown(o_item) {
alert('move down '+ window.event.keyCode);
}
now, the strange thing is that it is working only when I have clicked on a node and held the mouse button pressed, it looks that when I release the button, the selection is cleared and then the event handler is not working.
any solution?


rock - 9/28/2004 at 11:12 AM

Please refer to our Customer Care System


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/