mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Only select elements in completer when mouse is moved
This commit is contained in:
parent
9e48659016
commit
54cc77de0e
2 changed files with 4 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue