@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
30 lines • 664 B
TypeScript
export declare function isEventLike(event: any): event is EventLike;
export interface EventLike {
keyCode: number;
currentTarget: HTMLElement | SVGElement;
}
export default function handleKey(event: EventLike, {
onActivate,
onBlockEnd,
onBlockStart,
onDefault,
onEnd,
onEscape,
onHome,
onInlineEnd,
onInlineStart,
onPageDown,
onPageUp
}: {
onActivate?: () => void;
onBlockEnd?: () => void;
onBlockStart?: () => void;
onDefault?: () => void;
onEnd?: () => void;
onEscape?: () => void;
onHome?: () => void;
onInlineEnd?: () => void;
onInlineStart?: () => void;
onPageDown?: () => void;
onPageUp?: () => void;
}): void;