Explorar o código

keep keyboard open after cancelling drafts and quotes

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
6feeee7523
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)