feat: allow export all bookmarks keyboard shortcut
This commit is contained in:
@@ -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_));
|
||||
|
||||
Reference in New Issue
Block a user