[FIX#1641] 웹뷰의 자음 모음 분리 문제 해결 - #1643
Merged
Merged
Conversation
…into fix/#1641-webview-alarm-deeplink
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.
Related issue 🛠
Work Description ✏️
자음 모음 분리 문제 수정
소프트 키보드가 웹뷰의 입력 필드를 가려 한글 입력이 ㄴㅓ 처럼 분리되어 조합되지 않는 문제 확인
실기기에서 Chrome DevTools Protocol(CDP)로 확인하여 Android Window, WebView inset 처리 문제 발생을 확인
원인
adjustResize 네이티브 view 리사이즈
=> android:windowSoftInputMode="adjustResize"
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE 코드로 키보드가 표시될 때 Android View 자체가 물리적으로 리사이즈 되면서 한글 조합 중 InputConnction이 재시작되어서 조합상태가 끊기고 있었습니다
위 설정 제거만으로 해결 불가
=> adjustresize 를 제거하면 unspecified 상태가 되는데 일부 환경에서는 이 기본 동작이 사실상 adjustResize 처럼 처리되어서 여전히 문제가 발생해서 adjustpan으로 명시적 설정
fitsSystemWindows가 IME 인셋을 먼저소비
=> 루트 레이아웃(xml)에서 웹뷰에 전달 되기 전에 소비해서 visualViewport 와 window height가 항상 동일하게 유지 되어 최신 웹뷰의 IME 뷰포트 처리가 동작하지 않아서 해당 속성을 제거하고 정상적으로 분리되는 것을 확인했습니다
시스템 바 여백 재조정
=> fitsSystemWindows를 제거하자 WebView가 상태바와 하단 시스템 바 영역까지 확장되어, 화면 하단 UI가 제스처 바에 가까워지는 부작용이 발생하여 WebView 공식 inset 가이드의 zeroing 방식을 적용했습니다
Screenshot 📸
Screen_recording_20260726_234245.mp4