From 828fb2c3f56ffbc68ec9cda63c2d3674a53c1f3c Mon Sep 17 00:00:00 2001 From: fourtf Date: Sat, 26 Sep 2020 01:19:47 +0200 Subject: [PATCH] Fixes #1767 --- src/widgets/helper/ChannelView.cpp | 2 +- src/widgets/splits/SplitInput.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index a9ba3d7f8..f9dca6665 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -132,7 +132,7 @@ ChannelView::ChannelView(BaseWidget *parent) this->updatePauses(); }); - auto shortcut = new QShortcut(QKeySequence("Ctrl+C"), this); + auto shortcut = new QShortcut(QKeySequence::StandardKey::Copy, this); QObject::connect(shortcut, &QShortcut::activated, [this] { crossPlatformCopy(this->getSelectedText()); }); diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index af0de4a2c..713e0153f 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -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) { if (this->split_->view_->hasSelection())