fixes issue #17
This commit is contained in:
parent
52cff89735
commit
0b369e1c8e
1 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,7 @@ bool MainWindow::eventFilter(QObject* target, QEvent* event)
|
||||||
if (event->type() == QEvent::KeyPress) {
|
if (event->type() == QEvent::KeyPress) {
|
||||||
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
||||||
if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) {
|
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);
|
checkSellerNo(true);
|
||||||
} else {
|
} else {
|
||||||
checkSellerNo(false);
|
checkSellerNo(false);
|
||||||
|
@ -220,7 +220,7 @@ bool MainWindow::eventFilter(QObject* target, QEvent* event)
|
||||||
if (event->type() == QEvent::KeyPress) {
|
if (event->type() == QEvent::KeyPress) {
|
||||||
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
||||||
if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) {
|
if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) {
|
||||||
if (keyEvent->modifiers() == Qt::ControlModifier) {
|
if (keyEvent->modifiers() & Qt::ControlModifier) {
|
||||||
onPaidButtonTriggered();
|
onPaidButtonTriggered();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue