airgap: set focus to sign transaction button

This commit is contained in:
tobtoht 2023-12-12 00:25:42 +01:00
parent 9f109e8c42
commit 650bdd2370
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -402,6 +402,12 @@ void MainWindow::initMenu() {
void MainWindow::initOffline() { void MainWindow::initOffline() {
// TODO: check if we have any cameras available // TODO: check if we have any cameras available
ui->btn_help->setFocusPolicy(Qt::NoFocus);
ui->btn_viewOnlyDetails->setFocusPolicy(Qt::NoFocus);
ui->btn_checkAddress->setFocusPolicy(Qt::NoFocus);
ui->btn_signTransaction->setFocusPolicy(Qt::StrongFocus);
ui->btn_signTransaction->setFocus();
connect(ui->btn_help, &QPushButton::clicked, [this] { connect(ui->btn_help, &QPushButton::clicked, [this] {
windowManager()->showDocs(this, "offline_tx_signing"); windowManager()->showDocs(this, "offline_tx_signing");
}); });