Skip to content

Commit

Permalink
fix(qt): tab switching via shortcuts doesn't work after 5986
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Apr 24, 2024
1 parent 2610df3 commit c874205
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1612,14 +1612,14 @@ void updateButtonGroupShortcuts(QButtonGroup* buttonGroup)
return;
}
#ifdef Q_OS_MAC
auto modifier = Qt::CTRL;
auto modifier = "Ctrl";
#else
auto modifier = Qt::ALT;
auto modifier = "Alt";
#endif
int nKey = 0;
int nKey = 1;
for (auto button : buttonGroup->buttons()) {
if (button->isVisible()) {
button->setShortcut(QKeySequence(static_cast<int>(modifier) | static_cast<int>(Qt::Key_1) | nKey++));
button->setShortcut(QKeySequence(QString("%1+%2").arg(modifier).arg(nKey++)));
} else {
button->setShortcut(QKeySequence());
}
Expand Down

0 comments on commit c874205

Please sign in to comment.