mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-09-04 00:07:05 -04:00
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 <[email protected]>
This commit is contained in:
co-authored by
Ivan Lebedev
parent
b7a9787cc3
commit
088887c802
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user