helium/core: protect browser keyboard shortcuts

websites will no longer take preference over cmd+shift+c and devtools shortcuts
This commit is contained in:
wukko
2025-09-09 16:01:17 +06:00
parent 76a70fa75a
commit 6d832bc549
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -381,7 +381,10 @@ bool BrowserCommandController::IsReserve
command_id == IDC_NEW_INCOGNITO_WINDOW || command_id == IDC_NEW_TAB ||
command_id == IDC_NEW_WINDOW || command_id == IDC_RESTORE_TAB ||
command_id == IDC_SELECT_NEXT_TAB ||
- command_id == IDC_SELECT_PREVIOUS_TAB || command_id == IDC_EXIT;
+ command_id == IDC_SELECT_PREVIOUS_TAB || command_id == IDC_EXIT ||
+ command_id == IDC_COPY_URL || command_id == IDC_DEV_TOOLS ||
+ command_id == IDC_DEV_TOOLS_INSPECT || command_id == IDC_DEV_TOOLS_TOGGLE ||
+ command_id == IDC_DEV_TOOLS_CONSOLE;
}
void BrowserCommandController::TabStateChanged() {

View File

@@ -150,6 +150,7 @@ helium/core/add-updater-preference.patch
helium/core/add-disable-ech-flag.patch
helium/core/disable-outdated-build-detector.patch
helium/core/remove-dead-toolbar-actions.patch
helium/core/protect-browser-keyboard-shortcuts.patch
helium/settings/move-search-suggest.patch
helium/settings/remove-autofill.patch