summaryrefslogtreecommitdiff
path: root/popups/launcher/components/Clip.qml
diff options
context:
space:
mode:
Diffstat (limited to 'popups/launcher/components/Clip.qml')
-rw-r--r--popups/launcher/components/Clip.qml11
1 files changed, 2 insertions, 9 deletions
diff --git a/popups/launcher/components/Clip.qml b/popups/launcher/components/Clip.qml
index bc8d65f..7c6a5d5 100644
--- a/popups/launcher/components/Clip.qml
+++ b/popups/launcher/components/Clip.qml
@@ -12,7 +12,6 @@ IComponent {
property var clipHist: active ? Clip.query(inputCleaned) : []
property int selectedIndex: -1
- property bool mouseTriggered: false
name: "Clipboard"
@@ -35,13 +34,11 @@ IComponent {
up: function () {
if (selectedIndex <= 0)
return true;
- mouseTriggered = false;
selectedIndex--;
}
down: function () {
if (selectedIndex + 1 > listView.count - 1)
return true;
- mouseTriggered = false;
selectedIndex++;
}
@@ -50,14 +47,14 @@ IComponent {
syncSelectionState();
return;
}
- mouseTriggered = false;
+
selectedIndex = 0;
listView.positionViewAtBeginning();
syncSelectionState();
}
onSelectedIndexChanged: {
- if (!mouseTriggered && selectedIndex >= 0 && selectedIndex < listView.count) {
+ if (selectedIndex >= 0 && selectedIndex < listView.count) {
Qt.callLater(() => {
listView.positionViewAtIndex(selectedIndex, ListView.Contain);
});
@@ -150,12 +147,8 @@ IComponent {
anchors.fill: parent
hoverEnabled: true
onPositionChanged: {
- root.mouseTriggered = true;
root.selectedIndex = index;
}
- onExited: {
- root.mouseTriggered = true;
- }
onPressed: {
root._exec();
}