From ab7eccb1801ea7ccd0484aff4ddf98a2f46b0b0d Mon Sep 17 00:00:00 2001 From: Sampson Date: Wed, 11 Dec 2024 21:33:01 -0600 Subject: [PATCH] modify default shortcut to use the accelerator key This will continue to use Ctrl on Windows, but CMD on macOS. --- chromium_src/chrome/browser/ui/views/accelerator_table.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chromium_src/chrome/browser/ui/views/accelerator_table.cc b/chromium_src/chrome/browser/ui/views/accelerator_table.cc index f918f104710e..b7eac9cc48d1 100644 --- a/chromium_src/chrome/browser/ui/views/accelerator_table.cc +++ b/chromium_src/chrome/browser/ui/views/accelerator_table.cc @@ -16,7 +16,8 @@ namespace { constexpr AcceleratorMapping kBraveAcceleratorMap[] = { - {ui::VKEY_S, ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN, + // Ctr+Shift+S (Cmd+Shift+S on Mac) + {ui::VKEY_S, ui::EF_PLATFORM_ACCELERATOR | ui::EF_SHIFT_DOWN, IDC_SHARING_HUB_SCREENSHOT}, {ui::VKEY_M, ui::EF_CONTROL_DOWN, IDC_TOGGLE_TAB_MUTE}, // Ctrl+B(or Cmd+B)