add ctrl enter as shortcut for ok when setting annotation (#4929)

This commit is contained in:
ebbit1q 2023-12-15 19:55:11 +01:00 committed by GitHub
parent 4acc8bfe80
commit 28f80e18a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 4 deletions

View file

@ -477,4 +477,15 @@ public:
void setLastToken(CardInfoPtr cardInfo);
};
class AnnotationDialog : public QInputDialog
{
Q_OBJECT
void keyPressEvent(QKeyEvent *e) override;
public:
AnnotationDialog(QWidget *parent) : QInputDialog(parent)
{
}
};
#endif