Skip to main content

beforeKeyDown

fires before the user is pressing a shortcut key

beforeKeyDown: (e: Event) => boolean | void;

Parameters:

  • e: Event - a native KeyboardEvent object

Returns:

Return false to prevent pressing a shortcut key; otherwise, false.

Example

grid.events.on("beforeKeyDown", function (e) {
// your logic here
// return true
});

Related sample: Grid. Events

The event fires when a cell of Grid has a keyboard focus.

Change log:

added in v6.4