I need to implement hotkey events such as enter, shift+navigation keys, delete on datatable row(s).
I tried with navigation:true on datatable which is working fine for one row. But I need to select one or more rows by using shit with navigation keys.
In the same way I need to implement delete event, context menu as well on datatable rows.
Thanks for your response.
I need help on context menu. I’m able to get the context menu by using onContext attribute (http://webix.com/snippet/52307495).
But I need to show the same context menu by using Shift+F10 key Or select key from keyboard.
I need help on context menu. I’m able to get the context menu by using mouse (http://webix.com/snippet/52307495). But I need to show the same context menu by using Shift+F10 key Or select key from keyboard.
Thanks Maksim for quick response.
Is it must to select firstId of context menu? Because when I comment the below code the navigation is not responding.
$$(“cmenu”).select($$(“cmenu”).getFirstId());
This logic is working fine in case I selected single item from the list.
Perhaps I’m selecting multiple items from the list then I’m getting the error (“Uncaught TypeError: Cannot read property ‘ownerDocument’ of undefined”).
But it is working as expected in case of mouse right click.
Yes, when navigation is enabled, a hotkey can move the selection in the component. When we have no selection, it can’t be moved, so component doesn’t react on hotkeys.
I think we can update this behavior, and allow to select the first record in case of “bottom” key and the last record in case of “top” key. I will add it in TODO list for next Webix build.