fixed text copying in the emote popup
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user