Commit 0a483167 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

allow to activate elements via keypresses

parent e1d70b2f
......@@ -57,6 +57,8 @@ KateFileTree::KateFileTree(QWidget *parent): QTreeView(parent)
setAllColumnsShowFocus(true);
setFocusPolicy(Qt::NoFocus);
// handle activated (e.g. for pressing enter) + clicked (to avoid to need to do double-click e.g. on Windows)
connect(this, SIGNAL(activated(QModelIndex)), this, SLOT(mouseClicked(QModelIndex)));
connect(this, SIGNAL(clicked(QModelIndex)), this, SLOT(mouseClicked(QModelIndex)));
m_filelistReloadDocument = new QAction(QIcon::fromTheme(QLatin1String("view-refresh")), i18nc("@action:inmenu", "Reloa&d"), this);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment