Parcourir la source

disable return key if no text is input

Jonas Reinsch il y a 7 ans
Parent
commit
ff28c53fe5
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      deltachat-ios/CredentialsController.swift

+ 2 - 0
deltachat-ios/CredentialsController.swift

@@ -31,6 +31,8 @@ class TextFieldCell:UITableViewCell {
         textField.placeholder = placeholder
         
         selectionStyle = .none
+        
+        textField.enablesReturnKeyAutomatically = true
     }