Remove F5 F6 shortcuts for copy and paste to solve conflicts with setTargetSpeed

pull/3/head
laikh 2019-09-01 11:49:47 +02:00 committed by khlai
parent 562dc24641
commit e2854c0698
1 changed files with 2 additions and 2 deletions

View File

@ -1173,12 +1173,12 @@ void CelestiaAppWindow::createMenus()
navMenu->addAction(gotoObjAct); navMenu->addAction(gotoObjAct);
QAction *copyAction = new QAction(QIcon(":/icons/clip_copy.png"), _("Copy search console text"), this); QAction *copyAction = new QAction(QIcon(":/icons/clip_copy.png"), _("Copy search console text"), this);
copyAction->setShortcut(QString("F5")); // copyAction->setShortcut(QString("F5")); // conflict with setTargetSpeed
connect(copyAction, &QAction::triggered, this, &CelestiaAppWindow::copyText); connect(copyAction, &QAction::triggered, this, &CelestiaAppWindow::copyText);
navMenu->addAction(copyAction); navMenu->addAction(copyAction);
QAction *pasteAction = new QAction(QIcon(":/icons/clip_paste.png"), _("Paste into search console"), this); QAction *pasteAction = new QAction(QIcon(":/icons/clip_paste.png"), _("Paste into search console"), this);
pasteAction->setShortcut(QString("F6")); // pasteAction->setShortcut(QString("F6")); // conflict with setTargetSpeed
connect(pasteAction, &QAction::triggered, this, &CelestiaAppWindow::pasteText); connect(pasteAction, &QAction::triggered, this, &CelestiaAppWindow::pasteText);
navMenu->addAction(pasteAction); navMenu->addAction(pasteAction);