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: Made filters searchable in the Settings dialog search bar. (#5890)
|
||||||
- Minor: Updated emojis to Unicode 16.0. (#6155)
|
- Minor: Updated emojis to Unicode 16.0. (#6155)
|
||||||
- Minor: Allow disabling of double-click tab renaming through setting. (#6163, #6184)
|
- 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: 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: Fixed scrolling now working on inputs in the settings. (#6128)
|
||||||
- Bugfix: Make reply-cancel button less coarse-grained. (#6106)
|
- 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"}},
|
{"newSplit", ActionDefinition{"Create a new split"}},
|
||||||
{"newTab", ActionDefinition{"Create a new tab"}},
|
{"newTab", ActionDefinition{"Create a new tab"}},
|
||||||
{"openSettings", ActionDefinition{"Open settings"}},
|
{"openSettings", ActionDefinition{"Open settings"}},
|
||||||
|
{"openAccountSelector", ActionDefinition{"Open account selector"}},
|
||||||
{"openTab",
|
{"openTab",
|
||||||
ActionDefinition{
|
ActionDefinition{
|
||||||
"Select tab",
|
"Select tab",
|
||||||
|
|||||||
@@ -352,6 +352,11 @@ void Window::addShortcuts()
|
|||||||
SettingsDialog::showDialog(this);
|
SettingsDialog::showDialog(this);
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
|
{"openAccountSelector", // Open account selector
|
||||||
|
[](const std::vector<QString> &) -> QString {
|
||||||
|
getApp()->getWindows()->showAccountSelectPopup({0, 0});
|
||||||
|
return "";
|
||||||
|
}},
|
||||||
{"newSplit", // Create a new split
|
{"newSplit", // Create a new split
|
||||||
[this](std::vector<QString>) -> QString {
|
[this](std::vector<QString>) -> QString {
|
||||||
this->notebook_->getOrAddSelectedPage()->appendNewSplit(true);
|
this->notebook_->getOrAddSelectedPage()->appendNewSplit(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user