Explorar o código

let asm-input-keyboard default to number-entry

B. Petersen %!s(int64=5) %!d(string=hai) anos
pai
achega
2a68ef62c1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      deltachat-ios/Controller/ChatViewController.swift

+ 1 - 0
deltachat-ios/Controller/ChatViewController.swift

@@ -848,6 +848,7 @@ extension ChatViewController: MessageCellDelegate {
         inputDlg.addTextField(configurationHandler: { (textField) in
             textField.placeholder = msg.setupCodeBegin + ".."
             textField.text = orgText
+            textField.keyboardType = UIKeyboardType.numbersAndPunctuation // allows entering spaces; decimalPad would require a mask to keep things readable
         })
         inputDlg.addAction(UIAlertAction(title: String.localized("cancel"), style: .cancel, handler: nil))