diff --git a/app/gui/qt/mainwindow.cpp b/app/gui/qt/mainwindow.cpp index 1b45686b64..d883307d3f 100644 --- a/app/gui/qt/mainwindow.cpp +++ b/app/gui/qt/mainwindow.cpp @@ -4674,13 +4674,20 @@ void MainWindow::setUpdateInfoText(QString t) void MainWindow::addUniversalCopyShortcuts(QTextEdit* te) { - new QShortcut(ctrlKey("c"), te, SLOT(copy())); - new QShortcut(ctrlKey("a"), te, SLOT(selectAll())); + QShortcut* copyShortcutCtrl = new QShortcut(ctrlKey("c"), te, SLOT(copy())); + copyShortcutCtrl->setContext(Qt::WidgetShortcut); - new QShortcut(metaKey("c"), te, SLOT(copy())); - new QShortcut(metaKey("a"), te, SLOT(selectAll())); + QShortcut* selectAllShortcutCtrl = new QShortcut(ctrlKey("a"), te, SLOT(selectAll())); + selectAllShortcutCtrl->setContext(Qt::WidgetShortcut); + + QShortcut* copyShortcutMeta = new QShortcut(metaKey("c"), te, SLOT(copy())); + copyShortcutMeta->setContext(Qt::WidgetShortcut); + + QShortcut* selectAllShortcutMeta = new QShortcut(metaKey("a"), te, SLOT(selectAll())); + selectAllShortcutMeta->setContext(Qt::WidgetShortcut); } + QString MainWindow::asciiArtLogo() { return readFile(":/images/logo.txt");