diff options
Diffstat (limited to 'popups')
| -rw-r--r-- | popups/launcher/components/App.qml | 16 | ||||
| -rw-r--r-- | popups/launcher/components/Emoji.qml | 16 | ||||
| -rw-r--r-- | popups/launcher/components/Spell.qml | 15 |
3 files changed, 17 insertions, 30 deletions
diff --git a/popups/launcher/components/App.qml b/popups/launcher/components/App.qml index f3ce41d..e9dbcfd 100644 --- a/popups/launcher/components/App.qml +++ b/popups/launcher/components/App.qml @@ -175,18 +175,14 @@ IComponent { } } - TapHandler { - acceptedButtons: Qt.LeftButton - onTapped: { + MouseArea { + anchors.fill: parent + hoverEnabled: true + onPositionChanged: { root.selectedIndex = index; - root._exec(); } - } - HoverHandler { - onPointChanged: { - if (hovered) { - root.selectedIndex = index; - } + onPressed: { + root._exec(); } } } diff --git a/popups/launcher/components/Emoji.qml b/popups/launcher/components/Emoji.qml index 5dc9cd6..97df7eb 100644 --- a/popups/launcher/components/Emoji.qml +++ b/popups/launcher/components/Emoji.qml @@ -174,17 +174,11 @@ IComponent { } } - HoverHandler { - onPointChanged: { - if (hovered) - root.selectedIndex = index; - } - } - TapHandler { - onTapped: { - root.selectedIndex = index; - root._exec(); - } + MouseArea { + anchors.fill: parent + hoverEnabled: true + onPositionChanged: root.selectedIndex = index + onPressed: root._exec() } } diff --git a/popups/launcher/components/Spell.qml b/popups/launcher/components/Spell.qml index 1f8a15c..31184ef 100644 --- a/popups/launcher/components/Spell.qml +++ b/popups/launcher/components/Spell.qml @@ -180,16 +180,13 @@ IComponent { color: index === selectedIndex ? Colors.foreground1 : Colors.foreground2 } - HoverHandler { - onPointChanged: { - if (hovered) { - root.selectedIndex = index; - } - } - } - TapHandler { - onTapped: { + MouseArea { + anchors.fill: parent + hoverEnabled: true + onPositionChanged: { root.selectedIndex = index; + } + onPressed: { root._exec(); } } |
