mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-10-11 04:58:31 -04:00
add cyclic arrowkey navigation for entryview
This commit is contained in:
parent
e4088d5e6c
commit
745d255808
3 changed files with 18 additions and 15 deletions
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include <QKeyEvent>
|
||||
#include <QMouseEvent>
|
||||
#include <QDebug>
|
||||
|
||||
AutoTypeSelectView::AutoTypeSelectView(QWidget* parent)
|
||||
: EntryView(parent)
|
||||
|
@ -59,14 +58,8 @@ void AutoTypeSelectView::selectFirstEntry()
|
|||
|
||||
void AutoTypeSelectView::keyReleaseEvent(QKeyEvent* e)
|
||||
{
|
||||
qDebug() << e->key();
|
||||
|
||||
if (!e->modifiers() || (e->modifiers() & Qt::KeypadModifier && e->key() == Qt::Key_Enter)) {
|
||||
if (e->key() == Qt::Key_Escape) {
|
||||
emit rejected();
|
||||
} else {
|
||||
e->ignore();
|
||||
}
|
||||
if (e->key() == Qt::Key_Escape) {
|
||||
emit rejected();
|
||||
} else {
|
||||
e->ignore();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue