aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <[email protected]>2017-12-20 20:29:29 +0100
committerChristoph Cullmann <[email protected]>2017-12-20 20:31:31 +0100
commit4903dc5cdb809440adea416c8aff5c51db7d3fdd (patch)
tree38754b382b86ecaa15880ec0a0591e0faba98951
parentddb8693ebaa086f8cf9eae8d865e5950f078e755 (diff)
allow to switch to a file with enter
BUG: 387145 CHANGELOG: allow to switch between files in the project plugin treeview via keyboard input
-rw-r--r--addons/project/kateprojectviewtree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/project/kateprojectviewtree.cpp b/addons/project/kateprojectviewtree.cpp
index a02c7a7..1dbf88a 100644
--- a/addons/project/kateprojectviewtree.cpp
+++ b/addons/project/kateprojectviewtree.cpp
@@ -57,7 +57,9 @@ KateProjectViewTree::KateProjectViewTree(KateProjectPluginView *pluginView, Kate
/**
* connect needed signals
+ * we use activated + clicked as we want "always" single click activation + keyboard focus / enter working
*/
+ connect(this, &KateProjectViewTree::activated, this, &KateProjectViewTree::slotClicked);
connect(this, &KateProjectViewTree::clicked, this, &KateProjectViewTree::slotClicked);
connect(m_project, &KateProject::modelChanged, this, &KateProjectViewTree::slotModelChanged);