Przeglądaj źródła

Merge pull request #1260 from deltachat/keep_keyboard_on_cancel_drafts

keep keyboard open after cancelling drafts and quotes
cyBerta 4 lat temu
rodzic
commit
b8a8904125
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -1558,11 +1558,13 @@ extension ChatViewController: InputBarAccessoryViewDelegate {
 // MARK: - DraftPreviewDelegate
 extension ChatViewController: DraftPreviewDelegate {
     func onCancelQuote() {
+        keepKeyboard = true
         draft.setQuote(quotedMsg: nil)
         configureDraftArea(draft: draft)
     }
 
     func onCancelAttachment() {
+        keepKeyboard = true
         draft.setAttachment(viewType: nil, path: nil, mimetype: nil)
         configureDraftArea(draft: draft)
         evaluateInputBar(draft: draft)