Skip to content

Commit

Permalink
Add patch to enable overriding keys
Browse files Browse the repository at this point in the history
  • Loading branch information
glacambre committed Feb 26, 2019
1 parent c45042d commit 8df6e23
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions dont_reserve_keys.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
diff --git a/browser/base/content/browser-sets.inc b/browser/base/content/browser-sets.inc
--- a/browser/base/content/browser-sets.inc
+++ b/browser/base/content/browser-sets.inc
@@ -115,9 +115,9 @@
<key id="key_newNavigator"
key="&newNavigatorCmd.key;"
command="cmd_newNavigator"
- modifiers="accel" reserved="true"/>
+ modifiers="accel" />
<key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel"
- command="cmd_newNavigatorTabNoEvent" reserved="true"/>
+ command="cmd_newNavigatorTabNoEvent" />
<key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation"
modifiers="accel"/>
#ifndef XP_MACOSX
@@ -159,8 +159,8 @@
<key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile" modifiers="accel"/>
<key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
<key id="printKb" key="&printCmd.commandkey;" command="cmd_print" modifiers="accel"/>
- <key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel" reserved="true"/>
- <key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift" reserved="true"/>
+ <key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel" />
+ <key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift" />
<key id="key_toggleMute" key="&toggleMuteCmd.key;" command="cmd_toggleMute" modifiers="control"/>
<key id="key_undo"
key="&undoCmd.key;"
@@ -272,7 +272,7 @@
<key id="key_switchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_switchTextDirection" modifiers="accel,shift" />

<key id="key_privatebrowsing" command="Tools:PrivateBrowsing" key="&privateBrowsingCmd.commandkey;"
- modifiers="accel,shift" reserved="true"/>
+ modifiers="accel,shift" />
<key id="key_sanitize" command="Tools:Sanitize" keycode="VK_DELETE" modifiers="accel,shift"/>
#ifdef XP_MACOSX
<key id="key_sanitize_mac" command="Tools:Sanitize" keycode="VK_BACK" modifiers="accel,shift"/>
@@ -289,7 +289,7 @@
#ifndef XP_MACOSX
command="cmd_quitApplication"
#endif
- reserved="true"/>
+ />

<key id="key_undoCloseTab" command="History:UndoCloseTab" key="&tabCmd.commandkey;" modifiers="accel,shift"/>
<key id="key_undoCloseWindow" command="History:UndoCloseWindow" key="&newNavigatorCmd.key;" modifiers="accel,shift"/>

0 comments on commit 8df6e23

Please sign in to comment.