mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-22 22:40:55 -04:00
Support Ctrl+Enter shortcut on all dialogs with QPushButtonBox (#3039)
* Remove specific action from EditEntryWidget * Implement key handling at the lowest level * Fix #3036
This commit is contained in:
parent
cb442f8c6e
commit
acd6847cd4
2 changed files with 2 additions and 6 deletions
|
@ -35,7 +35,8 @@ void DialogyWidget::keyPressEvent(QKeyEvent* e)
|
|||
}
|
||||
} else
|
||||
#endif
|
||||
if (!e->modifiers() || (e->modifiers() & Qt::KeypadModifier && e->key() == Qt::Key_Enter)) {
|
||||
if (!e->modifiers() || e->modifiers() == Qt::ControlModifier
|
||||
|| (e->modifiers() & Qt::KeypadModifier && e->key() == Qt::Key_Enter)) {
|
||||
switch (e->key()) {
|
||||
case Qt::Key_Enter:
|
||||
case Qt::Key_Return:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue