beforeKeyDown

fires before the user is pressing a shortcut key

boolean beforeKeyDown(KeyboardEvent e){ ... };

Parameters

eKeyboardEventa native KeyboardEvent object

Returns

booleanfalse - to prevent pressing a shortcut key, otherwise false

Example

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

Related samples

Details

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

See also
Change log

added in v6.4

Back to top