Add hotkey action for opening account switcher (#6192)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user