mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
[SettingDialog] CTRL+F now selects the Find input (#1811)
* Sneakily make SettingsDialog constructor private at the same time 🕵
This commit is contained in:
parent
6ba9c5ec31
commit
276f3e1d98
|
@ -9,6 +9,7 @@
|
||||||
- Minor: BetterTTV / FrankerFaceZ emote tooltips now also have emote authors' name (#1721)
|
- Minor: BetterTTV / FrankerFaceZ emote tooltips now also have emote authors' name (#1721)
|
||||||
- Minor: Emotes in the emote popup are now sorted in the same order as the tab completion (#1549)
|
- Minor: Emotes in the emote popup are now sorted in the same order as the tab completion (#1549)
|
||||||
- Minor: Removed "Online Logs" functionality as services are shut down (#1640)
|
- Minor: Removed "Online Logs" functionality as services are shut down (#1640)
|
||||||
|
- Minor: CTRL+F now selects the Find text input field in the Settings Dialog (#1806 #1811)
|
||||||
- Bugfix: Fix preview on hover not working when Animated emotes options was disabled (#1546)
|
- Bugfix: Fix preview on hover not working when Animated emotes options was disabled (#1546)
|
||||||
- Bugfix: FFZ custom mod badges no longer scale with the emote scale options (#1602)
|
- Bugfix: FFZ custom mod badges no longer scale with the emote scale options (#1602)
|
||||||
- Bugfix: MacOS updater looked for non-existing fields, causing it to always fail the update check (#1642)
|
- Bugfix: MacOS updater looked for non-existing fields, causing it to always fail the update check (#1642)
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include "Application.hpp"
|
#include "Application.hpp"
|
||||||
#include "singletons/Resources.hpp"
|
#include "singletons/Resources.hpp"
|
||||||
#include "util/LayoutCreator.hpp"
|
#include "util/LayoutCreator.hpp"
|
||||||
|
#include "util/Shortcut.hpp"
|
||||||
#include "widgets/helper/Button.hpp"
|
#include "widgets/helper/Button.hpp"
|
||||||
#include "widgets/settingspages/AboutPage.hpp"
|
#include "widgets/settingspages/AboutPage.hpp"
|
||||||
#include "widgets/settingspages/AccountsPage.hpp"
|
#include "widgets/settingspages/AccountsPage.hpp"
|
||||||
|
@ -32,6 +33,11 @@ SettingsDialog::SettingsDialog()
|
||||||
this->addTabs();
|
this->addTabs();
|
||||||
this->overrideBackgroundColor_ = QColor("#111111");
|
this->overrideBackgroundColor_ = QColor("#111111");
|
||||||
this->scaleChangedEvent(this->scale()); // execute twice to width of item
|
this->scaleChangedEvent(this->scale()); // execute twice to width of item
|
||||||
|
|
||||||
|
createWindowShortcut(this, "CTRL+F", [this] {
|
||||||
|
this->ui_.search->setFocus();
|
||||||
|
this->ui_.search->selectAll();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsDialog::initUi()
|
void SettingsDialog::initUi()
|
||||||
|
|
|
@ -31,9 +31,9 @@ enum class SettingsDialogPreference {
|
||||||
|
|
||||||
class SettingsDialog : public BaseWindow
|
class SettingsDialog : public BaseWindow
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
SettingsDialog();
|
SettingsDialog();
|
||||||
|
|
||||||
|
public:
|
||||||
static void showDialog(SettingsDialogPreference preferredTab =
|
static void showDialog(SettingsDialogPreference preferredTab =
|
||||||
SettingsDialogPreference::NoPreference);
|
SettingsDialogPreference::NoPreference);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue