chore(StatusChatInput): add Esc handler to close reply area

similar to what pressing Esc does when editing a message
This commit is contained in:
Lukáš Tinkl 2022-11-15 18:21:05 +01:00 committed by Lukáš Tinkl
parent c7efcdd09f
commit bab0fee0ee
1 changed files with 3 additions and 0 deletions

View File

@ -303,6 +303,9 @@ Rectangle {
event.accepted = true
messageTooLongDialog.open()
}
} else if (event.key === Qt.Key_Escape && control.isReply) {
control.isReply = false
event.accepted = true
}
const symbolPressed = event.text.length > 0 &&