Compare commits

..

2 Commits

Author SHA1 Message Date
fish 0df02d487e 保留拼写确认按钮,同时新增键盘完成键提交
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-21 21:13:09 +08:00
fish e176a83b61 拼写学习模式改用键盘完成键提交,移除玻璃按钮
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-21 21:11:45 +08:00
@@ -55,6 +55,7 @@ final class SpellingInputView: UIView, UITextFieldDelegate {
hiddenField.autocapitalizationType = .none hiddenField.autocapitalizationType = .none
hiddenField.spellCheckingType = .no hiddenField.spellCheckingType = .no
hiddenField.keyboardType = .asciiCapable hiddenField.keyboardType = .asciiCapable
hiddenField.returnKeyType = .done
hiddenField.frame = .zero hiddenField.frame = .zero
addSubview(hiddenField) addSubview(hiddenField)
@@ -178,6 +179,12 @@ final class SpellingInputView: UIView, UITextFieldDelegate {
return false return false
} }
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
guard isComplete else { return false }
onSubmit?()
return false
}
// MARK: - Boxes // MARK: - Boxes
private func rebuildBoxes() { private func rebuildBoxes() {