Просмотр исходного кода

force keeping keyboard on reply btn action (#1710)

cyBerta 2 лет назад
Родитель
Сommit
78b6982b87
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      deltachat-ios/Chat/ChatViewController.swift

+ 2 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -255,7 +255,8 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
             title: String.localized("notify_reply_button"),
             imageName: "arrowshape.turn.up.left.fill",
             action: #selector(BaseMessageCell.messageReply),
-            onPerform: { indexPath in
+            onPerform: { [weak self] indexPath in
+                self?.keepKeyboard = true
                 DispatchQueue.main.async { [weak self] in
                     self?.replyToMessage(at: indexPath)
                 }