UNPKG

kbind

Version:

Library for working with keybinds

12 lines (11 loc) 463 B
/** * Validates if a keyboard event is valid for a text input. * * This function checks the event target to ensure it is an input element of type 'text'. * And then it checks if the pressed keys don't overlap with standard hotkeys. * * @param event - The keyboard event to validate. * @returns `true` if the event is valid, `false` otherwise. */ declare function isTextInputEventValid(event: KeyboardEvent): boolean; export default isTextInputEventValid;