This commit is contained in:
fourtf 2020-09-26 01:19:47 +02:00
parent b905e0afd1
commit 828fb2c3f5
2 changed files with 3 additions and 2 deletions

View file

@ -132,7 +132,7 @@ ChannelView::ChannelView(BaseWidget *parent)
this->updatePauses(); this->updatePauses();
}); });
auto shortcut = new QShortcut(QKeySequence("Ctrl+C"), this); auto shortcut = new QShortcut(QKeySequence::StandardKey::Copy, this);
QObject::connect(shortcut, &QShortcut::activated, QObject::connect(shortcut, &QShortcut::activated,
[this] { crossPlatformCopy(this->getSelectedText()); }); [this] { crossPlatformCopy(this->getSelectedText()); });

View file

@ -435,7 +435,8 @@ void SplitInput::installKeyPressedEvent()
} }
} }
} }
else if (event->key() == Qt::Key_C && else if ((event->key() == Qt::Key_C ||
event->key() == Qt::Key_Insert) &&
event->modifiers() == Qt::ControlModifier) event->modifiers() == Qt::ControlModifier)
{ {
if (this->split_->view_->hasSelection()) if (this->split_->view_->hasSelection())