Hello Everyone,
I am hoping to get some tips on how to deal with keyboard shortcuts. I’m building an app with dhtmlxlayout, dhtmlxgrid, dhtmlxtree, and dhtmlxmenu. One of my menu items creates a new row in one of the grids. I’d like to have a Ctrl+N hotkey or shortcut in addition to the menu. I see that I can use the ‘onKeyPress’ event for dhtmlxgrid, however, this event only seems to fire once the user has selected a row in the grid. Also, if the grid has no rows it will not fire at all. So, how does one implement a hotkey or shortcut to create a new row for the case where the grid is empty?
It seems like there should be an onKeyPress event for dhtmlxmenu, a kind of global onKeyPress event.
Thanks,
Eric