UNPKG

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