mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
Ref T600, use CTRL/SHIFT for info area shortcut, not conflicting with some other shortcuts
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user