feat: allow export all bookmarks keyboard shortcut

This commit is contained in:
Hamir Mahal
2024-10-25 16:07:25 -07:00
parent 2a44507b06
commit 7af446e463
5 changed files with 19 additions and 0 deletions
@@ -311,6 +311,7 @@ void BraveBrowserCommandController::InitBraveCommandState() {
UpdateCommandsForPin();
UpdateCommandEnabled(IDC_TOGGLE_ALL_BOOKMARKS_BUTTON_VISIBILITY, true);
UpdateCommandEnabled(IDC_EXPORT_ALL_BOOKMARKS, true);
if (browser_->is_type_normal()) {
// Delete these when upstream enables by default.
@@ -654,6 +655,9 @@ bool BraveBrowserCommandController::ExecuteBraveCommandWithDisposition(
case IDC_TOGGLE_ALL_BOOKMARKS_BUTTON_VISIBILITY:
brave::ToggleAllBookmarksButtonVisibility(base::to_address(browser_));
break;
case IDC_EXPORT_ALL_BOOKMARKS:
brave::ExportAllBookmarks(&*browser_);
break;
case IDC_COMMANDER:
#if BUILDFLAG(ENABLE_COMMANDER)
brave::ToggleCommander(base::to_address(browser_));