mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-12 03:25:21 -04:00
fix MatchView activation with Enter/Return on macOS
This commit is contained in:
parent
16fad1aba1
commit
aa54c7b6b3
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue