Only select elements in completer when mouse is moved

This commit is contained in:
Nicolas Werner 2021-01-27 19:36:53 +01:00
parent 9e48659016
commit 54cc77de0e
2 changed files with 4 additions and 3 deletions

View File

@ -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 {

View File

@ -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
}