UNPKG

665 BTypeScriptView Raw
1/// <reference types="react" />
2import { AbstractPureComponent2, Props } from "../../common";
3import { HotkeyConfig } from "../../hooks";
4export declare type IHotkeyProps = Props & HotkeyConfig;
5/**
6 * Hotkey component.
7 *
8 * @see https://blueprintjs.com/docs/#core/components/hotkeys
9 */
10export declare class Hotkey extends AbstractPureComponent2<IHotkeyProps> {
11 static displayName: string;
12 static defaultProps: {
13 allowInInput: boolean;
14 disabled: boolean;
15 global: boolean;
16 preventDefault: boolean;
17 stopPropagation: boolean;
18 };
19 render(): JSX.Element;
20 protected validateProps(props: IHotkeyProps): void;
21}