How do I override keyboard short cuts

Your built in keyboard short cuts are fine but I need to override a couple of them at the row level. How is this done?


1 Reply

AK Alagumeena Kalaiselvan Syncfusion Team January 21, 2022 03:08 PM UTC

Hi Paul, 
  
Thanks for contacting Syncfusion support. 
  
We have checked your reported query and you can override the Keyboard short cuts for specific action as MoveRightCell, IndentRow,  OutdentRow, MoveLeftCell, MoveDownCell and MoveUpCell using GanttKeySettings property. Refer the below code 
  
<SfGantt DataSource="@TaskCollection" Toolbar="@ToolItems" ProjectStartDate="new DateTime(2019,4,1)" ID="GanttChart" Width="1200px" Height="450px" HighlightWeekends="true" ContextMenuItems="@(new List<object>() { "Add", "TaskInformation","Indent","Outdent","DeleteTask"})" AllowReordering="true" TreeColumnIndex=1 GridLines="Syncfusion.Blazor.Gantt.GridLine.None"> 
<GanttTaskFields Id="TaskId" Name="TaskName" StartDate="StartDate" EndDate="EndDate" Duration="Duration" ParentID="ParentId"></GanttTaskFields> 
... 
<GanttKeySettings MoveRightCell="Shift+RightArrow" IndentRow="I" OutdentRow="O" MoveLeftCell="Ctrl+LeftArrow" MoveDownCell="Alt+DownArrow" MoveUpCell="Alt+UpArrow"></GanttKeySettings> 
</SfGantt> 
  
Also, you can get sample using below link. 
  
Please let us know, if you need further assistance. 
  
Regards 
Alagumeena.K 


Loader.
Up arrow icon