UNPKG

678 BTypeScriptView Raw
1/// <reference types="react" />
2import { AbstractPureComponent, Props } from "../../common";
3import { HotkeyConfig } from "../../hooks";
4export type HotkeyProps = Props & HotkeyConfig;
5/**
6 * Hotkey component used to display a hotkey in the HotkeysDialog.
7 * Should not be used by consumers directly.
8 */
9export declare class Hotkey extends AbstractPureComponent<HotkeyProps> {
10 static displayName: string;
11 static defaultProps: {
12 allowInInput: boolean;
13 disabled: boolean;
14 global: boolean;
15 preventDefault: boolean;
16 stopPropagation: boolean;
17 };
18 render(): JSX.Element;
19 protected validateProps(props: HotkeyProps): void;
20}