UNPKG

react-hotkeys

Version:

A declarative library for handling hotkeys and focus within a React application

24 lines (18 loc) 636 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _Configuration = _interopRequireDefault(require("./lib/config/Configuration")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Configure the behaviour of HotKeys * @param {Object} configuration Configuration object * @see Configuration.init */ function configure() { var configuration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; _Configuration.default.init(configuration); } var _default = configure; exports.default = _default;