瀏覽代碼

replace done keyboard button by default return button in AccountSetupController

cyberta 4 年之前
父節點
當前提交
c620fd2c74
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      deltachat-ios/Controller/AccountSetupController.swift

+ 2 - 2
deltachat-ios/Controller/AccountSetupController.swift

@@ -91,7 +91,7 @@ class AccountSetupController: UITableViewController, ProgressAlertHandler {
         cell.tag = tagPasswordCell
         cell.textField.tag = tagTextFieldPassword  // will be used to eventually show oAuth-Dialogue when selecting
         cell.textField.addTarget(self, action: #selector(textFieldDidChange), for: .editingChanged)
-        cell.textField.returnKeyType = advancedSectionShowing ? .next : .done
+        cell.textField.returnKeyType = advancedSectionShowing ? .next : .default
         return cell
     }()
 
@@ -508,7 +508,7 @@ class AccountSetupController: UITableViewController, ProgressAlertHandler {
         advancedShowCell.detailTextLabel?.text = willShow ? "\u{2013}" : nil
 
         advancedSectionShowing = willShow // set flag before delete/insert, because cellForRowAt will be triggered and uses this flag
-        passwordCell.textField.returnKeyType = willShow ? .next : .done
+        passwordCell.textField.returnKeyType = willShow ? .next : .default
         if willShow {
             tableView.insertRows(at: advancedIndexPaths, with: .fade)
         } else {