浏览代码

force keeping keyboard on reply btn action (#1710)

cyBerta 2 年之前
父节点
当前提交
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)
                 }