Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
Disable keyboard node navigation
posted

Hi,

I was wondering if it was possible to disable keyboard node navigation for an igTree?

Thanks,

Armando

  • 2895
    Verified Answer
    posted

    Hello Armando,

    Thank you for using our community.

    I would like to tell you that you can disable the keyboard navigation only through cancelling the events. What I mean is that there is no property that can be set to meet the desired functionality.  What you can do is detect whether the navigation is done through a keyboard and cancel the particular event. Here is an example:

    nodeExpanding: function(evt, ui){

         if (evt.button === undefined) {

              return false;

          }

    }

    This code will disable the node expansion when you use the keyboard to navigate the tree. If you give more information about the reasons you need to disable the keyboard navigation I will be able to better assist you.

    If you need further assistance on this case, don’t hesitate to contact me.