Skip to content

Commit

Permalink
force Preferences KeyboardShortcuts assign and remove into focus chain
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Sep 10, 2024
1 parent b3f4818 commit 3e1d4e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Dialogs/PreferenceWidgets/KeyboardShortcutsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,13 @@ void KeyboardShortcutsWidget::handleKeyEvent(QKeyEvent *event)
if (nextKey == Qt::Key_Tab || nextKey == Qt::Key_Backtab) {
QWidget * upnext = nullptr;
if (nextKey == Qt::Key_Tab) {
upnext = nextInFocusChain();
if (ui.assignButton->isEnabled()) {
upnext = ui.assignButton;
} else if (ui.removeButton->isEnabled()) {
upnext = ui.removeButton;
} else {
upnext = nextInFocusChain();
}
} else {
upnext = previousInFocusChain();
}
Expand Down

0 comments on commit 3e1d4e5

Please sign in to comment.