File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -4674,13 +4674,20 @@ void MainWindow::setUpdateInfoText(QString t)
4674
4674
4675
4675
void MainWindow::addUniversalCopyShortcuts (QTextEdit* te)
4676
4676
{
4677
- new QShortcut (ctrlKey (" c" ), te, SLOT (copy ()));
4678
- new QShortcut ( ctrlKey ( " a " ), te, SLOT ( selectAll ()) );
4677
+ QShortcut* copyShortcutCtrl = new QShortcut (ctrlKey (" c" ), te, SLOT (copy ()));
4678
+ copyShortcutCtrl-> setContext (Qt::WidgetShortcut );
4679
4679
4680
- new QShortcut (metaKey (" c" ), te, SLOT (copy ()));
4681
- new QShortcut (metaKey (" a" ), te, SLOT (selectAll ()));
4680
+ QShortcut* selectAllShortcutCtrl = new QShortcut (ctrlKey (" a" ), te, SLOT (selectAll ()));
4681
+ selectAllShortcutCtrl->setContext (Qt::WidgetShortcut);
4682
+
4683
+ QShortcut* copyShortcutMeta = new QShortcut (metaKey (" c" ), te, SLOT (copy ()));
4684
+ copyShortcutMeta->setContext (Qt::WidgetShortcut);
4685
+
4686
+ QShortcut* selectAllShortcutMeta = new QShortcut (metaKey (" a" ), te, SLOT (selectAll ()));
4687
+ selectAllShortcutMeta->setContext (Qt::WidgetShortcut);
4682
4688
}
4683
4689
4690
+
4684
4691
QString MainWindow::asciiArtLogo ()
4685
4692
{
4686
4693
return readFile (" :/images/logo.txt" );
You can’t perform that action at this time.
0 commit comments