Custom key in grid

For example:
I want to assign F2 to start/end editing in a grid.
Or reassign the behavior of Tab.

How should I do it?

You may try to use the beforeKeyDown event:
https://docs.dhtmlx.com/suite/grid/api/grid_beforekeydown_event/

1 Like

Thanks. I will try this way

https://snippet.dhtmlx.com/ec4uupd9

It does not have reaction for F2
Tab and Shift+Tab is OK

Unfortunately only the keys that are using in the default key navigation can be caught.

1 Like

You are able to define your own custom hotKeys for the grid using the “hotKeys” parameter of the grid.
Like:
https://snippet.dhtmlx.com/wfhough4

1 Like