Revert resetKeyboardToAlphabet

This commit is contained in:
Marissa Le Coz 2023-10-19 17:25:33 -04:00 committed by GitHub
parent 76613261d8
commit c6c1954a35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2068,21 +2068,9 @@ extension ConversationInputToolbar {
return
}
resetKeyboardToAlphabet()
inputToolbarDelegate.sendButtonPressed()
}
@objc
private func resetKeyboardToAlphabet() {
// Force a change so they keyboard returns to alphabet if
// it was changed to numeric.
inputTextView.keyboardType = .alphabet
inputTextView.reloadInputViews()
// But then return to default keyboard so we get e.g. emojis.
inputTextView.keyboardType = .default
inputTextView.reloadInputViews()
}
@objc
private func stickerButtonPressed() {
Logger.verbose("")