mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
13 lines
838 B
TypeScript
13 lines
838 B
TypeScript
//#region src/dom/interactive.d.ts
|
|
declare const INTERACTIVE_SELECTOR: string;
|
|
declare const EDITABLE_SELECTOR: string;
|
|
declare function isEditableElement(el: Element): boolean;
|
|
/** Whether the keyboard event target is an editable element (input, textarea, etc). */
|
|
declare function isEditableTarget(event: KeyboardEvent): boolean;
|
|
/** Whether the event originated from an interactive control (button, slider, etc). */
|
|
declare function isInteractiveTarget(event: Event): boolean;
|
|
/** Whether the event is an activation key on an activatable element (button, link, slider). */
|
|
declare function isInteractiveActivation(event: KeyboardEvent): boolean;
|
|
//#endregion
|
|
export { EDITABLE_SELECTOR, INTERACTIVE_SELECTOR, isEditableElement, isEditableTarget, isInteractiveActivation, isInteractiveTarget };
|
|
//# sourceMappingURL=interactive.d.ts.map
|