Commit e2b2fd2c authored by Milian Wolff's avatar Milian Wolff

Don't eat the backspace event when no alt modifier is set

parent d96d759a
......@@ -445,25 +445,28 @@ bool QuickOpenWidget::eventFilter(QObject* watched, QEvent* event)
return true; // eat event
}
break;
case Qt::Key_Backspace:
if (keyEvent->modifiers() == Qt::AltModifier) {
if (auto interface = getInterface()) {
interface->back();
return true; // eat event
}
}
break;
case Qt::Key_Down:
case Qt::Key_Up:
case Qt::Key_Backspace:
{
if (keyEvent->modifiers() == Qt::AltModifier) {
if (auto interface = getInterface()) {
if (keyEvent->key() == Qt::Key_Down) {
interface->down();
} else if (keyEvent->key() == Qt::Key_Up) {
interface->up();
} else {
interface->back();
interface->up();
}
return true; // eat event
}
break;
}
Q_FALLTHROUGH();
}
case Qt::Key_PageUp:
case Qt::Key_PageDown:
if (watched == ui.list) {
......
Markdown is supported
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