fixes issue #17

This commit is contained in:
Martin Brodbeck 2019-09-28 15:02:55 +02:00
parent 52cff89735
commit 0b369e1c8e

View file

@ -207,7 +207,7 @@ bool MainWindow::eventFilter(QObject* target, QEvent* event)
if (event->type() == QEvent::KeyPress) {
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) {
if (keyEvent->modifiers() == Qt::ControlModifier) {
if (keyEvent->modifiers() & Qt::ControlModifier) {
checkSellerNo(true);
} else {
checkSellerNo(false);
@ -220,7 +220,7 @@ bool MainWindow::eventFilter(QObject* target, QEvent* event)
if (event->type() == QEvent::KeyPress) {
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) {
if (keyEvent->modifiers() == Qt::ControlModifier) {
if (keyEvent->modifiers() & Qt::ControlModifier) {
onPaidButtonTriggered();
return true;
}