UNPKG

694 BTypeScriptView Raw
1import * as React from "react";
2import { AbstractPureComponent, type Props } from "../../common";
3import type { 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(): React.JSX.Element;
19 protected validateProps(props: HotkeyProps): void;
20}