UNPKG

@uiwwsw/virtual-keyboard

Version:

**A revolutionary virtual keyboard solution for React that solves the Korean `composition` issue.**

12 lines (11 loc) 389 B
/** * 키 입력 이벤트를 해석해서 실제 삽입할 문자열을 반환함 * - 한글 모드 토글 감지 (Windows만) * - 조합 여부 판단 (macOS는 키 값 기반) */ export declare function parseKeyInput(e: React.KeyboardEvent | KeyboardEvent, hangulMode: boolean): { handled: boolean; toggleHangulMode?: boolean; text?: string; composing?: boolean; };