sets focus on the gantt
gantt.focus();
This method is defined in the keyboard_navigation extension, so you need to activate the keyboard_navigation plugin. Read the details in the Keyboard Navigation article.
added in version 4.1