fix: enables the send message shortcut only for active chat (#322)

fix: Disables sending message shortcut instead of filtering in `Shortcut::activated` signal handler

Co-authored-by: Ivan Lebedev <ilebedev@flightpath3d.com>
This commit is contained in:
lebedeviv1988
2026-03-05 11:01:14 +00:00
committed by GitHub
parent b7a9787cc3
commit 088887c802

View File

@ -514,11 +514,8 @@ ChatRootView {
sequences: ["Ctrl+Return", "Ctrl+Enter"] sequences: ["Ctrl+Return", "Ctrl+Enter"]
context: Qt.WindowShortcut context: Qt.WindowShortcut
onActivated: { enabled: messageInput.activeFocus && !Qt.inputMethod.visible && !fileMentionPopup.visible
if (messageInput.activeFocus && !Qt.inputMethod.visible && !fileMentionPopup.visible) { onActivated: root.sendChatMessage()
root.sendChatMessage()
}
}
} }
function clearChat() { function clearChat() {