mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-27 11:44:56 +03:00
ui: Set Ctrl+, as a fallback shortcut for Edit->Preferences
This commit is contained in:
parent
7fbabfc425
commit
b18f88d852
@ -186,6 +186,12 @@ MainWindow::MainWindow(Core::Application *app, QWidget *parent) :
|
||||
currentTab()->activateSearchBar();
|
||||
});
|
||||
|
||||
if (QKeySequence(QKeySequence::Preferences).isEmpty()) {
|
||||
ui->actionPreferences->setShortcut(QStringLiteral("Ctrl+,"));
|
||||
} else {
|
||||
ui->actionPreferences->setShortcut(QKeySequence::Quit);
|
||||
}
|
||||
|
||||
connect(ui->actionPreferences, &QAction::triggered, [this]() {
|
||||
m_globalShortcut->setEnabled(false);
|
||||
QScopedPointer<SettingsDialog> dialog(new SettingsDialog(this));
|
||||
|
Loading…
Reference in New Issue
Block a user