From ed0b9ec1d69977ebadbeba9c4264a199ed4edf1d Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 3 Mar 2021 17:04:03 +0100 Subject: [PATCH] uiux(StatusChatInput): close text format menu on deletion Closes #1932 --- ui/shared/status/StatusChatInput.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/shared/status/StatusChatInput.qml b/ui/shared/status/StatusChatInput.qml index c6180e6d23..151c4f92eb 100644 --- a/ui/shared/status/StatusChatInput.qml +++ b/ui/shared/status/StatusChatInput.qml @@ -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) {