Fix and add menu accelerators (#15532)

* Fix and add menu accelerators: menus common to all workbenches

I use menu accelerators fairly often, so I find it very frustrating when
they are missing, or worse, they don't work due to the same letter being
assigned to several commands.

This patch adds accelerators to lots of menu entries missing them and
fixes broken accelerators.

Wherever possible, standard accelerator keys are used:
https://doc.qt.io/qt-5/accelerators.html

This commit covers accelerator fixes that are common to all workbenches.
Accelerator fixes for specific workbenches will be done in separate
commits.

* Add missing accelerators: Spreadsheet workbench
This commit is contained in:
Snow Faerie
2024-12-13 17:39:30 +01:00
committed by GitHub
parent 9a7063395a
commit 8bc062b6e8
17 changed files with 198 additions and 177 deletions

View File

@@ -340,7 +340,7 @@ void DocumentRecovery::accept()
}
}
d->ui.buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Finish"));
d->ui.buttonBox->button(QDialogButtonBox::Ok)->setText(tr("&Finish"));
d->ui.buttonBox->button(QDialogButtonBox::Cancel)->setEnabled(false);
d->recovered = true;
}