From 8a1ad186745ab4f4de11ed238cd428b4e8dbb7a4 Mon Sep 17 00:00:00 2001 From: Scratch Date: Wed, 30 Sep 2020 18:58:11 +1000 Subject: [PATCH] UI: Fix tab order for controls dock --- UI/window-basic-main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index a9e91f2aa..d507cfe64 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -1558,6 +1558,8 @@ void OBSBasic::AddVCamButton() vcamButton->setProperty("themeID", "vcamButton"); ui->buttonsVLayout->insertWidget(2, vcamButton); + setTabOrder(ui->recordButton, vcamButton); + setTabOrder(vcamButton, ui->modeSwitch); } void OBSBasic::ResetOutputs() @@ -1592,6 +1594,9 @@ void OBSBasic::ResetOutputs() replayBufferButton->setProperty("themeID", "replayBufferButton"); ui->buttonsVLayout->insertLayout(2, replayLayout); + setTabOrder(ui->recordButton, replayBufferButton); + setTabOrder(replayBufferButton, + ui->buttonsVLayout->itemAt(3)->widget()); } if (sysTrayReplayBuffer) @@ -8219,6 +8224,10 @@ void OBSBasic::UpdateReplayBuffer(bool activate) connect(replay.data(), &QAbstractButton::clicked, this, &OBSBasic::ReplayBufferSave); replayLayout->addWidget(replay.data()); + setTabOrder(replayLayout->itemAt(0)->widget(), + replayLayout->itemAt(1)->widget()); + setTabOrder(replayLayout->itemAt(1)->widget(), + ui->buttonsVLayout->itemAt(3)->widget()); } #define MBYTE (1024ULL * 1024ULL)