UNPKG

681 BTypeScriptView Raw
1/// <reference types="react" />
2import { Props } from "../../common";
3export interface IHotkeysProps extends Props {
4 /** Hotkey elements. */
5 children?: React.ReactNode;
6 /**
7 * In order to make local hotkeys work on elements that are not normally
8 * focusable, such as `<div>`s or `<span>`s, we add a `tabIndex` attribute
9 * to the hotkey target, which makes it focusable. By default, we use `0`,
10 * but you can override this value to change the tab navigation behavior
11 * of the component. You may even set this value to `null`, which will omit
12 * the `tabIndex` from the component decorated by `HotkeysTarget`.
13 */
14 tabIndex?: number;
15}