mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-26 01:11:16 -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)
|
void EntryView::keyPressEvent(QKeyEvent* event)
|
||||||
{
|
{
|
||||||
if ((event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) && currentIndex().isValid()) {
|
if ((event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) && currentIndex().isValid()) {
|
||||||
Q_EMIT emitEntryActivated(currentIndex());
|
emitEntryActivated(currentIndex());
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
QTreeView::keyPressEvent(event);
|
QTreeView::keyPressEvent(event);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntryView::setGroup(Group* group)
|
void EntryView::setGroup(Group* group)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user