diff --git a/ChatView/qml/RootItem.qml b/ChatView/qml/RootItem.qml index b90d049..548a86c 100644 --- a/ChatView/qml/RootItem.qml +++ b/ChatView/qml/RootItem.qml @@ -514,11 +514,8 @@ ChatRootView { sequences: ["Ctrl+Return", "Ctrl+Enter"] context: Qt.WindowShortcut - onActivated: { - if (messageInput.activeFocus && !Qt.inputMethod.visible && !fileMentionPopup.visible) { - root.sendChatMessage() - } - } + enabled: messageInput.activeFocus && !Qt.inputMethod.visible && !fileMentionPopup.visible + onActivated: root.sendChatMessage() } function clearChat() {