uiux(StatusChatInput): close text format menu on deletion

Closes #1932
This commit is contained in:
Pascal Precht 2021-03-03 17:04:03 +01:00 committed by Iuri Matias
parent 27eab84f94
commit ed0b9ec1d6

View File

@ -202,6 +202,10 @@ Rectangle {
}
function onRelease(event) {
if (event.key === Qt.Key_Backspace && textFormatMenu.opened) {
textFormatMenu.close()
}
// the text doesn't get registered to the textarea fast enough
// we can only get it in the `released` event
if (paste) {