fix MatchView activation with Enter/Return on macOS

This commit is contained in:
thez3ro 2018-02-04 23:32:51 +01:00
parent 16fad1aba1
commit aa54c7b6b3
No known key found for this signature in database
GPG Key ID: F628F9E41DD7C073

View File

@ -50,6 +50,10 @@ void AutoTypeMatchView::keyPressEvent(QKeyEvent* event)
{
if ((event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) && currentIndex().isValid()) {
emitMatchActivated(currentIndex());
#ifdef Q_OS_MAC
// Pressing return does not emit the QTreeView::activated signal on mac os
emit activated(currentIndex());
#endif
}
QTreeView::keyPressEvent(event);