[tor-bugs] #17599 [Applications/Tor Browser]: Please add keyboard shortcuts for New Identity and New Tor Circuit for this Site

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon May 23 18:19:47 UTC 2016


#17599: Please add keyboard shortcuts for New Identity and New Tor Circuit for this
Site
------------------------------------------+--------------------------------
 Reporter:  cypherpunks                   |          Owner:  tbb-team
     Type:  enhancement                   |         Status:  needs_revision
 Priority:  Medium                        |      Milestone:
Component:  Applications/Tor Browser      |        Version:
 Severity:  Normal                        |     Resolution:
 Keywords:  tbb-usability, tbb-torbutton  |  Actual Points:
Parent ID:                                |         Points:
 Reviewer:                                |        Sponsor:
------------------------------------------+--------------------------------

Comment (by cpwc):

 Here's a small patch that adds the hotkeys to the current TorBrowser
 5.5.5. The "keyset" in torbutton.xul does the work. The change in
 popup.xul just makes it so the shortcuts are displayed next to the
 commands in the torbutton menu. Works for me. Thanks cypherpunks and mcs
 for leading the way.

 {{{
 --- chrome/content/popup.xul.orig       2000-01-01 00:00:00.000000000
 -0700
 +++ chrome/content/popup.xul    2016-05-23 00:00:00.000000000 -0700
 @@ -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/>
 --- chrome/content/torbutton.xul.orig   2000-01-01 00:00:00.000000000
 -0700
 +++ chrome/content/torbutton.xul        2016-05-23 00:00:00.000000000
 -0700
 @@ -45,4 +45,11 @@
                          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 id=torbuttonKeyset>
 +        <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>
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17599#comment:10>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list