Fix: allow default keyboard for alias input (support Zhuyin)

This commit is contained in:
HsunLu
2025-09-22 14:40:11 +08:00
parent 9fca3a5984
commit 3834b5a604
2 changed files with 3 additions and 3 deletions
@@ -487,7 +487,7 @@
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
textField.placeholder = [LocalizationHelper localizedStringForKey:@"Alias label (optional)"];
textField.keyboardType = UIKeyboardTypeASCIICapable;
textField.keyboardType = UIKeyboardTypeDefault;
textField.autocorrectionType = UITextAutocorrectionTypeNo;
textField.spellCheckingType = UITextSpellCheckingTypeNo;
}];
@@ -558,7 +558,7 @@
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
textField.placeholder = [LocalizationHelper localizedStringForKey:@"Alias label (optional)"];
textField.keyboardType = UIKeyboardTypeASCIICapable;
textField.keyboardType = UIKeyboardTypeDefault;
textField.autocorrectionType = UITextAutocorrectionTypeNo;
textField.spellCheckingType = UITextSpellCheckingTypeNo;
textField.text = self->selectedWidgetView.widgetLabel;
@@ -224,7 +224,7 @@ import UIKit
alert.textFields?[0].keyboardType = .asciiCapable
alert.textFields?[0].autocorrectionType = .no
alert.textFields?[0].spellCheckingType = .no
alert.textFields?[1].keyboardType = .asciiCapable
alert.textFields?[1].keyboardType = .default
alert.textFields?[1].autocorrectionType = .no
alert.textFields?[1].spellCheckingType = .no