Repository navigation
fix: 모바일 IME에서 음절 조합 전에 자모가 떨어지는 문제 수정 - #5
Merged
Merged
Conversation
- input.value 를 버퍼로 두고 정착(settle) 시점에만 스폰하는 모델로 교체 - 즉시 flush + value 비우기가 커밋-교체형 키보드의 조합을 끊던 것이 원인 - 마지막 글자가 아직 변할 수 있는 한글이면 300ms 유예 후 settle - 조합 종료 직후 새 조합이 시작되면 settle 을 스킵하고 다음 settle 에 합류 - blur 시 남은 버퍼를 그대로 스폰 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013jzX6PJvGgLYvdvXBBRS4m
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문제
PC에서는 조합이 끝날 때까지 기다렸다가 떨어지는데, 모바일에서는 음절이 합쳐지기 전에 자모(ㅎ, ㅏ…)가 따로 떨어짐.
원인: 일부 모바일 키보드는 표준 composition 이벤트 대신 "일단 글자를 커밋하고, 다음 자모가 오면 지우고 교체"하는 방식으로 동작한다. 기존 코드는 커밋된 값을 즉시 스폰하고
input.value를 비웠기 때문에 키보드가 교체할 대상이 사라져 조합이 끊겼다.수정 (파일 1개 —
src/lib/input.ts)input.value를 버퍼로 두고 정착(settle) 시점에만 스폰하는 모델로 교체:composition*/insertCompositionText)에는 아무것도 안 함ㅎ → 하 → 한으로 교체하면 최종 결과만 떨어진다확인 방법
한,글두 글자만 떨어짐 (자모가 따로 안 떨어짐). 빠르게 연속 타이핑해도 순서 유지.트레이드오프: 커밋-교체형 키보드에서 한글은 마지막 글자가 입력 멈춘 뒤 ~300ms 후에 떨어집니다. 조합 감각상 체감되지 않는 수준이고, 표준 IME(iOS 등)는 지연 없이 기존대로 동작합니다.
Generated by Claude Code