Commit 284b61fa authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Disable parent<->child navigation with left/right arrow keys

We disable this style-dependent tree view feature for all tree views
because it interferes with column by column navigation that is required
for accessibility

GnuPG-bug-id: 6102
parent 4418eff2
......@@ -292,6 +292,10 @@ public:
KleopatraApplication::KleopatraApplication(int &argc, char *argv[])
: QApplication(argc, argv), d(new Private(this))
{
// disable parent<->child navigation in tree views with left/right arrow keys
// because this interferes with column by column navigation that is required
// for accessibility
setStyleSheet(QStringLiteral("QTreeView { arrow-keys-navigate-into-children: 0; }"));
connect(this, &QApplication::focusChanged,
this, [this](QWidget *, QWidget *now) {
d->updateFocusFrame(now);
......
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