From aa54c7b6b372100a56eb1772be3f87b0e57a94fd Mon Sep 17 00:00:00 2001 From: thez3ro Date: Sun, 4 Feb 2018 23:32:51 +0100 Subject: [PATCH] fix MatchView activation with Enter/Return on macOS --- src/gui/entry/AutoTypeMatchView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/entry/AutoTypeMatchView.cpp b/src/gui/entry/AutoTypeMatchView.cpp index ad7d16ddc..67f38c79e 100644 --- a/src/gui/entry/AutoTypeMatchView.cpp +++ b/src/gui/entry/AutoTypeMatchView.cpp @@ -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);