Composer: on escape, cancel any response
This commit is contained in:
parent
d6846b08d9
commit
8823077a1c
1
TODO.md
1
TODO.md
|
@ -1,6 +1,5 @@
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
- deselect/unfocus after removing or replying to messages
|
|
||||||
- add room members loading indicator
|
- add room members loading indicator
|
||||||
|
|
||||||
- fix event ID mention regex
|
- fix event ID mention regex
|
||||||
|
|
|
@ -166,6 +166,14 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
area.Keys.onEscapePressed.connect(ev => {
|
||||||
|
if (chat.replyToEventId) {
|
||||||
|
chat.replyToEventId = ""
|
||||||
|
chat.replyToUserId = ""
|
||||||
|
chat.replyToDisplayName = ""
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
area.Keys.onReturnPressed.connect(ev => {
|
area.Keys.onReturnPressed.connect(ev => {
|
||||||
ev.accepted = true
|
ev.accepted = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user