[tbb-commits] [torbutton/master] Bug 17599: Provide shortcuts for New Identity and New Circuit

gk at torproject.org gk at torproject.org
Tue May 24 13:55:39 UTC 2016


commit e546a3f158b6fc39c66e323eaa7b8463caef599c
Author: Georg Koppen <gk at torproject.org>
Date:   Tue May 24 13:05:16 2016 +0000

    Bug 17599: Provide shortcuts for New Identity and New Circuit
    
    Thanks to cpwc for the patch.
---
 src/chrome/content/popup.xul     | 2 ++
 src/chrome/content/torbutton.xul | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/src/chrome/content/popup.xul b/src/chrome/content/popup.xul
index 6511b6c..d015766 100644
--- a/src/chrome/content/popup.xul
+++ b/src/chrome/content/popup.xul
@@ -19,11 +19,13 @@
         <menuitem id="torbutton-new-identity"
                   label="&torbutton.context_menu.new_identity;"
                   accesskey="&torbutton.context_menu.new_identity_key;"
+                  key="torbutton-new-identity-key"
                   insertafter="context-stop"
                   oncommand="torbutton_new_identity()"/>
         <menuitem id="torbutton-new-circuit"
                   label="&torbutton.context_menu.new_circuit;"
                   accesskey="&torbutton.context_menu.new_circuit_key;"
+                  key="torbutton-new-circuit-key"
                   insertafter="context-stop"
                   oncommand="torbutton_new_circuit()"/>
         <menuseparator/>
diff --git a/src/chrome/content/torbutton.xul b/src/chrome/content/torbutton.xul
index a9d60f6..df86370 100644
--- a/src/chrome/content/torbutton.xul
+++ b/src/chrome/content/torbutton.xul
@@ -45,4 +45,10 @@
                         context="torbutton-context-menu" />
 <!--        <statusbarpanel context="clipmenu" class="statusbarpanel-iconic" id="plugins-status" tooltip="plugin-tooltip" onclick="torbutton_toggle_plugins();"/> -->
    </statusbar>
+
+<!-- Global keyboard shortcuts for new identity and new circuit. -->
+   <keyset>
+        <key id="torbutton-new-identity-key" modifiers="accel shift" key="U" oncommand="torbutton_new_identity()"/>
+        <key id="torbutton-new-circuit-key" modifiers="accel shift" key="L" oncommand="torbutton_new_circuit()"/>
+   </keyset>
 </overlay>



More information about the tbb-commits mailing list