The contextmenu samples on the website (a.o. dhtmlx.com/docs/products/dht … namic.html) all are only activated by right-click with the mouse, the choices can only be selected by mouse.
Users would like to activate the contextmenu with the menu-button (usually on keyboards on the right side of the ALT key), and select their choice (like ‘add row’, ‘del row’) with the arrowkeys+enter. So that they can keep their hands on the keyboard while entering data.
What char code does button have controlled by browser. If Chromium on Lubuntu 10.04 doesn’t return char code for menu-button then it cannot be fixed with dhtmlxGrid component.
As a workaround for the problem with the menu-key I also defined the home-key (code 36) as a trigger for the contextmenu. So now I can show the contextmenu, with following code:
However it turns out the context-menu does not listen to the arrow-keys, as the grid does. I already tried adding an attachEvent for the menu, but this does not trigger any alert:
dhtmlxMenu doesn’t have “onKeyPress” event. If such requirement is critical in your case please open ticket at support.dhtmlx.com/ and we’ll provide customized version of dhtmlxMenu.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan