summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <[email protected]>2017-02-16 10:24:56 +0000
committerDavid Edmundson <[email protected]>2017-02-16 10:24:56 +0000
commit5e7cbdd445f6caf8fdf59ca7f098275cc160347d (patch)
treeeb0030ec89dd10f91eaee36db28b113d76dae553
parente125eb5d18584df2899e3b6afb5280e6413d058f (diff)
Pressing Enter should open submenus in Kicker
Summary: BUG: 375756 Test Plan: Pressed enter on an item with children. Menu appeared Pressed enter on an application. It launched as before Reviewers: #plasma, hein Reviewed By: #plasma, hein Subscribers: hein, mart, cfeck, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D4401
-rw-r--r--applets/kicker/package/contents/ui/ItemListView.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/applets/kicker/package/contents/ui/ItemListView.qml b/applets/kicker/package/contents/ui/ItemListView.qml
index bb15b6a..40e1a87 100644
--- a/applets/kicker/package/contents/ui/ItemListView.qml
+++ b/applets/kicker/package/contents/ui/ItemListView.qml
@@ -233,11 +233,11 @@ FocusScope {
}
showChildDialogs = true;
- } else if (event.key == Qt.Key_Right && childDialog != null) {
+ } else if ((event.key == Qt.Key_Right || event.key == Qt.Key_Return || event.key == Qt.Key_Enter) && childDialog != null) {
windowSystem.forceActive(childDialog.mainItem);
childDialog.mainItem.focus = true;
childDialog.mainItem.currentIndex = 0;
- } else if (event.key == Qt.Key_Right && childDialog == null
+ } else if ((event.key == Qt.Key_Right || event.key == Qt.Key_Return || event.key == Qt.Key_Enter) && childDialog == null
&& currentItem != null && currentItem.hasChildren) {
dialogSpawnTimer.focusOnSpawn = true;
dialogSpawnTimer.restart();
@@ -245,6 +245,8 @@ FocusScope {
dialog.destroy();
} else if (event.key == Qt.Key_Escape) {
plasmoid.expanded = false;
+ } else if (event.key == Qt.Key_Tab) {
+ //do nothing, and skip appending text
} else if (event.text != "") {
appendSearchText(event.text);
}