@matthewgapp/solidjs-flow
Version:
React Flow - A highly customizable React library for building node-based editors and interactive flow charts.
15 lines • 559 B
TypeScript
import { type KeyCode } from '@xyflow/system';
export type UseKeyPressOptions = {
target?: Window | Document | HTMLElement | ShadowRoot | null;
actInsideInputWithModifier?: boolean;
};
/**
* Hook for handling key events.
*
* @public
* @param param.keyCode - The key code (string or array of strings) to use
* @param param.options - Options
* @returns boolean
*/
export declare function useKeyPress(keyCode?: (() => KeyCode | null | undefined) | null, options?: () => UseKeyPressOptions): () => boolean;
//# sourceMappingURL=useKeyPress.d.ts.map