mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-25 17:01:17 -05:00
Fix EntryView not emitting activated() signals on return key press.
AutoTypeSelectDialog relies on this behavior.
This commit is contained in:
parent
b64276c4e8
commit
3dd4681e69
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user