Create and register a new context: addContext()įor example: if you're using a complex custom editor,.Get an already-registered context: getContext().Switch to a different context: setActiveContextName().Get the name of the currently-active context: getActiveContextName().Using the ShortcutManager API methods, you can: When the user interacts with the keyboard, only actions registered for the currently-active context are executed. addShortcut ( ) Įvery keyboard action is registered in a particular context: ContextĪctivates when the user navigates the data grid (initial context)Īctivates when the user opens a cell editorĪctivates when the user opens a cell's context menu You can customize your keyboard shortcuts, using the ShortcutManager API.Ĭonst gridContext = hot. Move to the last visible item of the context menu or submenu Move to the first visible item of the context menu or submenu Move one available menu item up, down, left, or right To activate them, enable the ContextMenu plugin. These keyboard shortcuts work in context menus. These keyboard shortcuts work when the UndoRedo plugin is enabled. These keyboard shortcuts work when the MergeCells plugin is enabled. WindowsĬut the contents of the selected cells to the system clipboardĬopy the contents of the selected cells to the system clipboard These keyboard shortcuts work when the CopyPaste plugin is enabled. These keyboard shortcuts work with particular plugins. These keyboard shortcuts work in the handsontable cell editor. These keyboard shortcuts work in the checkbox cell editor. * This action depends on your layout direction. Move the cursor to the beginning or to the end of the textĮxtend the selection to the beginning or to the end of the textĬomplete the cell entry and move one screen upĬomplete the cell entry and move one screen downĬancel the cell entry and exit the editing mode Move the cursor to the beginning of the text * WindowsĮnter the pressed key's value into the cellĬomplete the cell entry and move to the cell belowĬomplete the cell entry and move to the cell aboveĬomplete the cell entry and move to the next cell *Ĭomplete the cell entry and move to the previous cell * They come from Handsontable's Core, so they work out of the box, with no need for additional plugins. These keyboard shortcuts work when you're editing a cell's contents. ** In case of multiple selection layers, only the last selection layer gets extended. WindowsĮxtend the selection to the first cell of the current column **Įxtend the selection to the last cell of the current column **Įxtend the selection to the leftmost cell of the current row **Įxtend the selection to the rightmost cell of the current row **Įxtend the selection to the first non-frozen cell of the current row *Įxtend the selection to the last non-frozen cell of the current row *įill the selected range of cells with the value of the active cell These keyboard shortcuts help you select cells. Move to the last non-frozen cell of the grid * Move to the last non-frozen cell of the current row * Move to the first non-frozen cell of the grid * Move to the first non-frozen cell of the current row * Move to the previous cell * (if there's only one column available, move one cell up) Move to the next cell * (if there's only one column available, move one cell down) Move to the rightmost cell of the current rowĮnter the editing mode of the active cellĮnter the editing mode of the active cell, and enter the pressed key's value into the cell Move to the leftmost cell of the current row Move to the last cell of the current column Move to the first cell of the current column These keyboard shortcuts work when you navigate the grid. Than in Microsoft Excel or Google Sheets in certain situations. Handsontable doesn't detect data series (doesn't differentiate between blank cells and non-blank cells).įor this reason, some keyboard shortcuts (e.g., Cmd + Arrow keys) may behave differently You can easily check if a keyboard shortcut's action is compatible with Microsoft Excel or Google Sheets: You can also completely customize your keyboard shortcuts, using the ShortcutManager API:īy default, Handsontable features the keyboard shortcuts listed below. To navigate Handsontable similarly to Google Sheets or Microsoft Excel, use the default keyboard shortcuts.
0 Comments
Leave a Reply. |