Ref T600, use CTRL/SHIFT for info area shortcut, not conflicting with some other shortcuts

This commit is contained in:
Klaus Basan
2019-04-12 16:45:09 +02:00
parent dd1aec056f
commit e67a54f497
2 changed files with 5 additions and 2 deletions

View File

@@ -223,7 +223,10 @@ namespace BlackGui
action->setObjectName(this->objectName().append(":getInfoAreaSelectActions:").append(wt)); action->setObjectName(this->objectName().append(":getInfoAreaSelectActions:").append(wt));
if (withShortcut && i < keys.length()) if (withShortcut && i < keys.length())
{ {
action->setShortcut(QKeySequence(QStringLiteral("Ctrl+%1").arg(keys.at(i)))); // T600 The strings "Ctrl", "Shift", "Alt" and "Meta" are recognized
// https://doc.qt.io/archives/qt-4.8/qkeysequence.html Standard shortcuts already used
// "Ctrl+Shift+%1" als works
action->setShortcut(QKeySequence(QStringLiteral("Ctrl+Shift+%1").arg(keys.at(i))));
} }
connect(action, &QAction::triggered, this, &CInfoArea::selectAreaByAction); connect(action, &QAction::triggered, this, &CInfoArea::selectAreaByAction);

View File

@@ -147,7 +147,7 @@ void SwiftGuiStd::initMenus()
c = connect(a, &QAction::triggered, this, [ = ] c = connect(a, &QAction::triggered, this, [ = ]
{ {
this->copyXSwiftBusDialog(false); this->copyXSwiftBusDialog(false);
}); }, Qt::QueuedConnection);
Q_ASSERT_X(c, Q_FUNC_INFO, "connect failed"); Q_ASSERT_X(c, Q_FUNC_INFO, "connect failed");
} }