fix shortcut copy conflict (#2112)

This commit is contained in:
chendapao 2022-04-25 16:46:58 +08:00 committed by GitHub
parent 243a03e142
commit 06b9269b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2180,7 +2180,7 @@ void NotebookNodeExplorer::setupShortcuts()
// Copy
{
auto shortcut = WidgetUtils::createShortcut(coreConfig.getShortcut(CoreConfig::Copy), this);
auto shortcut = WidgetUtils::createShortcut(coreConfig.getShortcut(CoreConfig::Copy), this, Qt::WidgetWithChildrenShortcut);
if (shortcut) {
connect(shortcut, &QShortcut::activated,
this, [this]() {