Make PS Buttons not react to spacebar (#2154)

* Make the togglePrivateSend button not react to the spacebar or enter. #1766

* redo comment

* change `privateSendAuto` focus policy to remain consistent
This commit is contained in:
PaulieD 2018-07-07 16:18:29 -05:00 committed by UdjinM6
parent f833e2ed6c
commit c4698d5f3d

View File

@ -300,6 +300,12 @@ void OverviewPage::setWalletModel(WalletModel *model)
connect(ui->privateSendReset, SIGNAL(clicked()), this, SLOT(privateSendReset()));
connect(ui->privateSendInfo, SIGNAL(clicked()), this, SLOT(privateSendInfo()));
connect(ui->togglePrivateSend, SIGNAL(clicked()), this, SLOT(togglePrivateSend()));
// privatesend buttons will not react to spacebar must be clicked on
ui->privateSendAuto->setFocusPolicy(Qt::NoFocus);
ui->privateSendReset->setFocusPolicy(Qt::NoFocus);
ui->privateSendInfo->setFocusPolicy(Qt::NoFocus);
ui->togglePrivateSend->setFocusPolicy(Qt::NoFocus);
}
}