[SearchPopup] CTRL+F now focuses the search input (#1812)

This commit is contained in:
pajlada
2020-07-18 11:52:12 -04:00
committed by GitHub
parent d25dee10b2
commit 382dfbc2fa
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -10,6 +10,7 @@
#include "messages/search/AuthorPredicate.hpp"
#include "messages/search/LinkPredicate.hpp"
#include "messages/search/SubstringPredicate.hpp"
#include "util/Shortcut.hpp"
#include "widgets/helper/ChannelView.hpp"
namespace chatterino {
@@ -51,6 +52,11 @@ SearchPopup::SearchPopup()
{
this->initLayout();
this->resize(400, 600);
createShortcut(this, "CTRL+F", [this] {
this->searchInput_->setFocus();
this->searchInput_->selectAll();
});
}
void SearchPopup::setChannel(const ChannelPtr &channel)