mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed text copying in the emote popup
This commit is contained in:
parent
935cd1bab0
commit
0475ea0b6f
2 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
#include "widgets/notebook.hpp"
|
||||
|
||||
#include <QHBoxLayout>
|
||||
#include <QShortcut>
|
||||
#include <QTabWidget>
|
||||
|
||||
using namespace chatterino::providers::twitch;
|
||||
|
|
|
@ -126,7 +126,11 @@ ChannelView::ChannelView(BaseWidget *parent)
|
|||
this->scrollBar.setGeometry(this->width() - this->scrollBar.width(), 0,
|
||||
this->scrollBar.width(), this->height());
|
||||
});
|
||||
} // namespace widgets
|
||||
|
||||
QShortcut *shortcut = new QShortcut(QKeySequence("Ctrl+C"), this);
|
||||
QObject::connect(shortcut, &QShortcut::activated,
|
||||
[this] { QGuiApplication::clipboard()->setText(this->getSelectedText()); });
|
||||
}
|
||||
|
||||
ChannelView::~ChannelView()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue