GuiSearch did not work with num. keypad enter

This commit is contained in:
Pavel Sanda 2021-02-16 08:52:21 +01:00
parent 5980afaee0
commit 1ba3307226

View File

@ -105,7 +105,7 @@ void GuiSearchWidget::keyPressEvent(QKeyEvent * ev)
setKeySymbol(&sym, ev);
// catch Return and Shift-Return
if (ev->key() == Qt::Key_Return) {
if (ev->key() == Qt::Key_Return || ev->key() == Qt::Key_Enter) {
findClicked(ev->modifiers() == Qt::ShiftModifier);
return;
}