UNPKG

@bitrix24/b24ui-nuxt

Version:

Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE

11 lines (10 loc) 406 B
/** * Prevents Enter-to-submit from firing during IME composition. * * Handles the Safari quirk where `compositionend` fires before `keydown`, * making `event.isComposing` unreliable (https://bugs.webkit.org/show_bug.cgi?id=165004). */ export declare function useIMEGuard(callback: (event: KeyboardEvent) => void): { onKeydown: (event: KeyboardEvent) => void; onCompositionEnd: () => void; };