Prefix shortcut names with menu path

This commit is contained in:
GriffinR
2025-08-05 16:55:51 -04:00
parent 2a74f0dc0e
commit 9f4125b6bd
3 changed files with 47 additions and 6 deletions

View File

@@ -2271,7 +2271,12 @@ void MainWindow::initShortcutsEditor() {
connectSubEditorsToShortcutsEditor();
shortcutsEditor->setShortcutableObjects(shortcutableObjects());
auto objectList = shortcutableObjects();
for (auto *menu : findChildren<QMenu *>()) {
if (!menu->objectName().isEmpty())
objectList.append(qobject_cast<QObject *>(menu));
}
shortcutsEditor->setShortcutableObjects(objectList);
}
void MainWindow::connectSubEditorsToShortcutsEditor() {