react-hotkeys
Version:
A declarative library for handling hotkeys and focus within a React application
24 lines (21 loc) • 429 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/**
* @typedef {number} KeyEventType index (0-2) of which position in an event record
* a particular event is located
*/
/**
* Enum for types of key events
* @readonly
* @enum {KeyEventType}
*/
var KeyEventType = {
keydown: 0,
keypress: 1,
keyup: 2
};
var _default = KeyEventType;
exports.default = _default;