Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 21, 2008 05:28
open dhtmlx forum
grid

Can we have keyboard shortcuts implemented to a grid? For example if my grid contains two columns

Dept Description

IT computers,projects

HR recruitment, payroll

Now if I type i the row IT should be selected in the grid or if I type h on my keyboard HR should be selected. If there is a way this could be done with your grid?
Answer posted by Support on Mar 21, 2008 06:48
You can attach any custom key handlers

grid.attachEvent("onKeyPress",function(keycode){
           if (keycode == "some")
                 do_something();
          return true;
});