robicch / jQueryGantt

jQuery Gantt editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow keyboard shortcuts

brentfraser opened this issue · comments

I like just entering the all the task names in a project first. So to allow using the Enter key, add something like:

$(window).keypress(function(e){
  var code = e.which || e.keyCode;
  switch ( code )
  {
    case 13:  // return
      $('#workSpace').trigger('addBelowCurrentTask.gantt')
      return false;
    default:
      break;
  }
});```

There are already several keyboard shortcut.
have a look at ganttMaster and ganttGridEditor