Add hotkey action for opening account switcher (#6192)
This commit is contained in:
@@ -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