Last active
June 22, 2024 18:17
-
-
Save yimingliu/19dfbca6b2dedcbc6c85b4fbf44fce90 to your computer and use it in GitHub Desktop.
Firefox 127.0.1 source code patch to change New Private Window shortcut to Cmd-Shift-N (like Safari) and Go Home key to Command-Shift-H (like Safari)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -urN firefox-124.0.1-orig/browser/base/content/browser-sets.inc firefox-124.0.1/browser/base/content/browser-sets.inc | |
--- firefox-124.0.1-orig/browser/base/content/browser-sets.inc 2024-03-21 21:05:13 | |
+++ firefox-124.0.1/browser/base/content/browser-sets.inc 2024-04-01 00:29:51 | |
@@ -216,7 +216,7 @@ | |
<key id="goBackKb2" data-l10n-id="nav-back-shortcut-alt" command="Browser:Back" modifiers="accel"/> | |
<key id="goForwardKb2" data-l10n-id="nav-fwd-shortcut-alt" command="Browser:Forward" modifiers="accel"/> | |
#endif | |
- <key id="goHome" keycode="VK_HOME" oncommand="BrowserCommands.home();" modifiers="alt"/> | |
+ <key id="goHome" data-l10n-id="yliu-go-home" oncommand="BrowserCommands.home();" modifiers="accel,shift"/> | |
<key keycode="VK_F5" command="Browser:Reload"/> | |
#ifndef XP_MACOSX | |
<key id="showAllHistoryKb" data-l10n-id="history-show-all-shortcut" command="Browser:ShowAllHistory" modifiers="accel,shift"/> | |
@@ -334,7 +334,7 @@ | |
reserved="true"/> | |
<key id="key_restoreLastClosedTabOrWindowOrSession" command="History:RestoreLastClosedTabOrWindowOrSession" data-l10n-id="tab-new-shortcut" modifiers="accel,shift"/> | |
- <key id="key_undoCloseWindow" command="History:UndoCloseWindow" data-l10n-id="window-new-shortcut" modifiers="accel,shift"/> | |
+ <key id="key_undoCloseWindow" command="History:UndoCloseWindow" data-l10n-id="yliu-window-undo-new-shortcut" modifiers="accel,shift"/> | |
#ifdef XP_GNOME | |
#define NUM_SELECT_TAB_MODIFIER alt | |
diff -urN firefox-124.0.1-orig/browser/locales/en-US/browser/browserSets.ftl firefox-124.0.1/browser/locales/en-US/browser/browserSets.ftl | |
--- firefox-124.0.1-orig/browser/locales/en-US/browser/browserSets.ftl 2024-03-21 21:00:02 | |
+++ firefox-124.0.1/browser/locales/en-US/browser/browserSets.ftl 2024-04-01 00:29:51 | |
@@ -11,6 +11,9 @@ | |
window-new-shortcut = | |
.key = N | |
+yliu-window-undo-new-shortcut = | |
+ .key = Z | |
+ | |
window-minimize-shortcut = | |
.key = M | |
@@ -97,6 +100,9 @@ | |
nav-fwd-shortcut-alt = | |
.key = ] | |
+yliu-go-home = | |
+ .key = H | |
+ | |
nav-reload-shortcut = | |
.key = R | |
@@ -105,7 +111,7 @@ | |
.key = . | |
history-show-all-shortcut = | |
- .key = H | |
+ .key = VK_HOME | |
history-show-all-shortcut-mac = | |
.key = Y | |
@@ -195,7 +201,7 @@ | |
.key = X | |
private-browsing-shortcut = | |
- .key = P | |
+ .key = N | |
## The shortcuts below are for Mac specific | |
## global menu. | |
diff -urN firefox-124.0.1-orig/build/moz.configure/toolchain.configure firefox-124.0.1/build/moz.configure/toolchain.configure | |
--- firefox-124.0.1-orig/build/moz.configure/toolchain.configure 2024-03-21 21:05:13 | |
+++ firefox-124.0.1/build/moz.configure/toolchain.configure 2024-04-01 00:30:29 | |
@@ -1772,7 +1772,7 @@ | |
die("Unsupported linker " + linker) | |
# Check the kind of linker | |
- version_check = ["-Wl,--version"] | |
+ version_check = ["-Wl,-v"] | |
cmd_base = c_compiler.wrapper + [c_compiler.compiler] + c_compiler.flags | |
def try_linker(linker): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment