From 54cc77de0ebdebe58b28f6fad713fbcc53d6d7a8 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 27 Jan 2021 19:36:53 +0100 Subject: [PATCH] Only select elements in completer when mouse is moved --- resources/qml/Completer.qml | 2 +- resources/qml/MessageInput.qml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/qml/Completer.qml b/resources/qml/Completer.qml index 750a0fdd..27322172 100644 --- a/resources/qml/Completer.qml +++ b/resources/qml/Completer.qml @@ -85,7 +85,7 @@ Popup { anchors.fill: parent hoverEnabled: true - onEntered: popup.currentIndex = model.index + onPositionChanged: popup.currentIndex = model.index onClicked: popup.completionClicked(completer.completionAt(model.index)) Ripple { diff --git a/resources/qml/MessageInput.qml b/resources/qml/MessageInput.qml index 138a9ab6..35ebe488 100644 --- a/resources/qml/MessageInput.qml +++ b/resources/qml/MessageInput.qml @@ -164,7 +164,8 @@ Rectangle { event.accepted = true; } else if (event.key == Qt.Key_Space) { if (popup.opened && popup.count <= 0) - popup.close() + popup.close(); + } else if (event.modifiers == Qt.ControlModifier && event.key == Qt.Key_U) { messageInput.clear(); } else if (event.modifiers == Qt.ControlModifier && event.key == Qt.Key_P) { @@ -258,7 +259,7 @@ Rectangle { Connections { ignoreUnknownSignals: true - onReplyChanged: messageInput.forceActiveFocus(); + onReplyChanged: messageInput.forceActiveFocus() target: TimelineManager.timeline }