mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 11:58:53 -05:00
add ctrl enter as shortcut for ok in load deck from clipboard (#5417)
This commit is contained in:
@@ -71,3 +71,13 @@ void DlgLoadDeckFromClipboard::actOK()
|
||||
delete deckLoader;
|
||||
}
|
||||
}
|
||||
|
||||
void DlgLoadDeckFromClipboard::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
if (event->key() == Qt::Key_Return && event->modifiers() & Qt::ControlModifier) {
|
||||
event->accept();
|
||||
actOK();
|
||||
return;
|
||||
}
|
||||
QDialog::keyPressEvent(event);
|
||||
}
|
||||
@@ -26,6 +26,9 @@ public:
|
||||
{
|
||||
return deckList;
|
||||
}
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user