mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-27 20:36:49 -08:00
Fix EntryView not emitting activated() signals on return key press.
AutoTypeSelectDialog relies on this behavior.
This commit is contained in:
1 parent
b64276c4e8
commit
3dd4681e69
1 file changed
+3
-4
@@ -53,11 +53,10 @@ EntryView::EntryView(QWidget* parent)
|
||||
void EntryView::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
if ((event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) && currentIndex().isValid()) {
|
||||
Q_EMIT emitEntryActivated(currentIndex());
|
||||
}
|
||||
else {
|
||||
QTreeView::keyPressEvent(event);
|
||||
emitEntryActivated(currentIndex());
|
||||
}
|
||||
|
||||
QTreeView::keyPressEvent(event);
|
||||
}
|
||||
|
||||
void EntryView::setGroup(Group* group)
|
||||
|
||||
Reference in new issue
Block a user