Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / editorOwnsKey

Function: editorOwnsKey()

editorOwnsKey(event): boolean

True when an open editor uses this key, so it must not reach the grid's (or the page's) shortcuts. F1-F12 and Ctrl/Cmd/Alt combinations a text box has no use for are NOT the editor's: they go on to the page (P-7.2), which is how an app's F2 "Save" or Ctrl+P still works while a cell is being typed in. Keys the page or the app's hook already took are not the editor's either.

Parameters

event

AnyKeyEvent

Returns

boolean