mirror of
https://github.com/morgan9e/helium
synced 2026-04-14 00:14:20 +09:00
helium/core: protect browser keyboard shortcuts
websites will no longer take preference over cmd+shift+c and devtools shortcuts
This commit is contained in:
14
patches/helium/core/protect-browser-keyboard-shortcuts.patch
Normal file
14
patches/helium/core/protect-browser-keyboard-shortcuts.patch
Normal 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() {
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user