Skip to content

Commit 94efe6a

Browse files
authored
Merge pull request #36 from rbqks529/refactor/#35_code_input
[refactor]: 키보드 내려가게 수정
2 parents fc6a3bc + 028dbd6 commit 94efe6a

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

composeApp/src/commonMain/kotlin/org/whosin/client/presentation/auth/clubcode/ClubCodeInputScreen.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ fun ClubCodeInputScreen(
161161
focusRequesters[index + 1].requestFocus()
162162
keyboardController?.show()
163163
}
164+
else if (input.isNotEmpty() && index == 5) {
165+
keyboardController?.hide()
166+
}
164167
// 현재 박스가 비워지고 이전 박스가 있으면 이전으로 이동
165168
else if (input.isEmpty() && index > 0) {
166169
currentFocusIndex = index - 1

composeApp/src/commonMain/kotlin/org/whosin/client/presentation/auth/login/EmailVerificationScreen.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ fun EmailVerificationScreen(
134134
currentFocusIndex = index + 1
135135
focusRequesters[index + 1].requestFocus()
136136
}
137+
else if (input.isNotEmpty() && index == 5) {
138+
keyboardController?.hide()
139+
}
137140
// 현재 박스가 비워지고 이전 박스가 있으면 이전으로 이동
138141
else if (input.isEmpty() && index > 0) {
139142
currentFocusIndex = index - 1

0 commit comments

Comments
 (0)