mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Prepopulate search window input with current text selection (#4178)
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
This commit is contained in:
parent
2aa8af47e7
commit
4fa214a38a
|
@ -2,6 +2,7 @@
|
|||
|
||||
## Unversioned
|
||||
|
||||
- Minor: Search window input will automatically use currently selected text if present. (#4178)
|
||||
- Minor: Cleared up highlight sound settings (#4194)
|
||||
- Bugfix: Fixed highlight sounds not reloading on change properly. (#4194)
|
||||
- Bugfix: Fixed CTRL + C not working in reply thread popups. (#4209)
|
||||
|
|
|
@ -62,6 +62,12 @@ SearchPopup::SearchPopup(QWidget *parent, Split *split)
|
|||
, split_(split)
|
||||
{
|
||||
this->initLayout();
|
||||
if (this->split_ && this->split_->getChannelView().hasSelection())
|
||||
{
|
||||
this->searchInput_->setText(
|
||||
this->split_->getChannelView().getSelectedText().trimmed());
|
||||
this->searchInput_->selectAll();
|
||||
}
|
||||
this->resize(400, 600);
|
||||
this->addShortcuts();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue