How to disable hotkey like ctrl+n? #1563
Unanswered
winston0410
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Keyboard shortcuts are handled in You would be able to disable ctrl+n by making this change: --- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -1144,7 +1144,7 @@
IncognitoModePrefs::Availability incognito_availability =
IncognitoModePrefs::GetAvailability(profile->GetPrefs());
command_updater->UpdateCommandEnabled(
- IDC_NEW_WINDOW, incognito_availability != IncognitoModePrefs::FORCED);
+ IDC_NEW_WINDOW, false);
command_updater->UpdateCommandEnabled(
IDC_NEW_INCOGNITO_WINDOW,
incognito_availability != IncognitoModePrefs::DISABLED && |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Ahrotahn thank you for the reply. Are those file inside Actually I would like to map it |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to disable hotkey in chromium, like ctrl+n?
Beta Was this translation helpful? Give feedback.
All reactions