1 | import * as React from "react";
|
2 | import { AbstractPureComponent, Props } from "../../common";
|
3 | export interface HotkeysProps extends Props {
|
4 | /**
|
5 | * In order to make local hotkeys work on elements that are not normally
|
6 | * focusable, such as `<div>`s or `<span>`s, we add a `tabIndex` attribute
|
7 | * to the hotkey target, which makes it focusable. By default, we use `0`,
|
8 | * but you can override this value to change the tab navigation behavior
|
9 | * of the component. You may even set this value to `null`, which will omit
|
10 | * the `tabIndex` from the component decorated by `HotkeysTarget`.
|
11 | */
|
12 | tabIndex?: number;
|
13 | }
|
14 | /**
|
15 | * Hotkeys component used to display a list of hotkeys in the HotkeysDialog.
|
16 | * Should not be used by consumers directly.
|
17 | */
|
18 | export declare class Hotkeys extends AbstractPureComponent<HotkeysProps> {
|
19 | static displayName: string;
|
20 | static defaultProps: {
|
21 | tabIndex: number;
|
22 | };
|
23 | render(): JSX.Element | null;
|
24 | protected validateProps(props: HotkeysProps & {
|
25 | children: React.ReactNode;
|
26 | }): void;
|
27 | }
|