aeghn

Untitled

Jul 28th, 2020
14
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. From fb7c19d2be65a6cef31862c2854fea9bb1387652 Mon Sep 17 00:00:00 2001
  2. From: aeghn <aeghn@outlook.com>
  3. Date: Tue, 28 Jul 2020 12:16:50 +0800
  4. Subject: [PATCH] test1
  5.  
  6. ---
  7. chrome/browser/content/browser/browser.xhtml | 34 +++++++++++++-------
  8. localization/en-US/browser/browserSets.ftl | 4 +--
  9. 2 files changed, 25 insertions(+), 13 deletions(-)
  10.  
  11. diff --git a/chrome/browser/content/browser/browser.xhtml b/chrome/browser/content/browser/browser.xhtml
  12. index b5e8b77..ad5490d 100644
  13. --- a/chrome/browser/content/browser/browser.xhtml
  14. +++ b/chrome/browser/content/browser/browser.xhtml
  15. @@ -194,8 +194,14 @@ if (AppConstants.platform == "macosx") {
  16. <command id="Browser:ReloadSkipCache" oncommand="BrowserReloadSkipCache()" disabled="true">
  17. <observes element="Browser:Reload" attribute="disabled"/>
  18. </command>
  19. - <command id="Browser:NextTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(1, true);"/>
  20. - <command id="Browser:PrevTab" oncommand="gBrowser.tabContainer.advanceSelectedTab(-1, true);"/>
  21. + <command id="Browser:NextTab"
  22. + oncommand="gBrowser.tabContainer.advanceSelectedTab(1, true);"
  23. + data-l10n-id="window-new-shortcut"
  24. + modifiers="alt"/>
  25. + <command id="Browser:PrevTab"
  26. + oncommand="gBrowser.tabContainer.advanceSelectedTab(-1, true);"
  27. + data-l10n-id="private-browsing-shortcut"
  28. + modifiers="alt"/>
  29. <command id="Browser:ShowAllTabs" oncommand="gTabsPanel.showAllTabsPanel();"/>
  30. <command id="cmd_fullZoomReduce" oncommand="FullZoom.reduce()"/>
  31. <command id="cmd_fullZoomEnlarge" oncommand="FullZoom.enlarge()"/>
  32. @@ -270,11 +276,11 @@ if (AppConstants.platform == "macosx") {
  33. </commandset>
  34.  
  35. <keyset id="mainKeyset">
  36. - <key id="key_newNavigator"
  37. - data-l10n-id="window-new-shortcut"
  38. - command="cmd_newNavigator"
  39. - modifiers="accel" reserved="true"/>
  40. - <key id="key_newNavigatorTab" data-l10n-id="tab-new-shortcut" modifiers="accel"
  41. + <!-- <key id="key_newNavigator" -->
  42. + <!-- data-l10n-id="window-new-shortcut" -->
  43. + <!-- command="cmd_newNavigator" -->
  44. + <!-- modifiers="accel" reserved="true"/> -->
  45. + <key id="key_newNavigatorTab" data-l10n-id="location-open-shortcut" modifiers="alt"
  46. command="cmd_newNavigatorTabNoEvent" reserved="true"/>
  47. <key id="focusURLBar" data-l10n-id="location-open-shortcut" command="Browser:OpenLocation"
  48. modifiers="accel"/>
  49. @@ -293,7 +299,7 @@ if (AppConstants.platform == "macosx") {
  50. <key id="key_openAddons" data-l10n-id="addons-shortcut" command="Tools:Addons" modifiers="accel,shift"/>
  51. <key id="openFileKb" data-l10n-id="file-open-shortcut" command="Browser:OpenFile" modifiers="accel"/>
  52. <key id="key_savePage" data-l10n-id="save-page-shortcut" command="Browser:SavePage" modifiers="accel"/>
  53. - <key id="printKb" data-l10n-id="print-shortcut" command="cmd_print" modifiers="accel"/>
  54. + <!-- <key id="printKb" data-l10n-id="print-shortcut" command="cmd_print" modifiers="accel"/> -->
  55. <key id="key_close" data-l10n-id="close-shortcut" command="cmd_close" modifiers="accel" reserved="true"/>
  56. <key id="key_closeWindow" data-l10n-id="close-shortcut" command="cmd_closeWindow" modifiers="accel,shift" reserved="true"/>
  57. <key id="key_toggleMute" data-l10n-id="mute-toggle-shortcut" command="cmd_toggleMute" modifiers="control"/>
  58. @@ -318,8 +324,14 @@ if (AppConstants.platform == "macosx") {
  59.  
  60. <key keycode="VK_BACK" command="cmd_handleBackspace" reserved="false"/>
  61. <key keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift" reserved="false"/>
  62. - <key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/>
  63. - <key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/>
  64. + <key id="goBackKb"
  65. + data-l10n-id="bookmark-show-sidebar-shortcut"
  66. + command="Browser:Back"
  67. + modifiers="alt"/>
  68. + <key id="goForwardKb"
  69. + data-l10n-id="full-screen-shortcut"
  70. + command="Browser:Forward"
  71. + modifiers="alt"/>
  72. <key id="goBackKb2" data-l10n-id="nav-back-shortcut-alt" command="Browser:Back" modifiers="accel"/>
  73. <key id="goForwardKb2" data-l10n-id="nav-fwd-shortcut-alt" command="Browser:Forward" modifiers="accel"/>
  74. <key id="goHome" keycode="VK_HOME" oncommand="BrowserHome();" modifiers="alt"/>
  75. @@ -385,7 +397,7 @@ if (AppConstants.platform == "macosx") {
  76. command="cmd_quitApplication"
  77. reserved="true"/>
  78.  
  79. - <key id="key_undoCloseTab" command="History:UndoCloseTab" data-l10n-id="tab-new-shortcut" modifiers="accel,shift"/>
  80. + <key id="key_undoCloseTab" command="History:UndoCloseTab" data-l10n-id="location-open-shortcut" modifiers="accel,shift"/>
  81. <key id="key_undoCloseWindow" command="History:UndoCloseWindow" data-l10n-id="window-new-shortcut" modifiers="accel,shift"/>
  82.  
  83.  
  84. diff --git a/localization/en-US/browser/browserSets.ftl b/localization/en-US/browser/browserSets.ftl
  85. index 7eb98ca..03f5269 100644
  86. --- a/localization/en-US/browser/browserSets.ftl
  87. +++ b/localization/en-US/browser/browserSets.ftl
  88. @@ -36,7 +36,7 @@ find-shortcut =
  89. .key = F
  90.  
  91. search-find-again-shortcut =
  92. - .key = G
  93. + .key = S
  94.  
  95. search-find-again-shortcut-alt =
  96. .keycode = VK_F3
  97. @@ -69,7 +69,7 @@ file-open-shortcut =
  98. .key = O
  99.  
  100. save-page-shortcut =
  101. - .key = S
  102. + .key = Y
  103.  
  104. page-source-shortcut =
  105. .key = U
  106. --
  107. 2.27.0
  108.  
  109.  
RAW Paste Data