Add hotkey action for opening account switcher (#6192)

This commit is contained in:
teknsl
2025-05-06 19:47:05 +02:00
committed by GitHub
parent 9e600a8fb8
commit 3e5b4a9d08
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@
- Minor: Made filters searchable in the Settings dialog search bar. (#5890)
- Minor: Updated emojis to Unicode 16.0. (#6155)
- Minor: Allow disabling of double-click tab renaming through setting. (#6163, #6184)
- Minor: Added hotkey Action for opening account selector. (#6192)
- Bugfix: Don't create native messaging manifest file if browser directory doesn't exist. (#6116)
- Bugfix: Fixed scrolling now working on inputs in the settings. (#6128)
- Bugfix: Make reply-cancel button less coarse-grained. (#6106)
+1
View File
@@ -292,6 +292,7 @@ inline const std::map<HotkeyCategory, ActionDefinitionMap> actionNames{
{"newSplit", ActionDefinition{"Create a new split"}},
{"newTab", ActionDefinition{"Create a new tab"}},
{"openSettings", ActionDefinition{"Open settings"}},
{"openAccountSelector", ActionDefinition{"Open account selector"}},
{"openTab",
ActionDefinition{
"Select tab",
+5
View File
@@ -352,6 +352,11 @@ void Window::addShortcuts()
SettingsDialog::showDialog(this);
return "";
}},
{"openAccountSelector", // Open account selector
[](const std::vector<QString> &) -> QString {
getApp()->getWindows()->showAccountSelectPopup({0, 0});
return "";
}},
{"newSplit", // Create a new split
[this](std::vector<QString>) -> QString {
this->notebook_->getOrAddSelectedPage()->appendNewSplit(true);