[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #17599 [Tor Browser]: Please add keyboard shortcuts for New Identity and New Tor Circuit for this Site
#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: Tor Browser | Version:
Severity: Normal | Resolution:
Keywords: tbb-usability, tbb-torbutton | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
------------------------------------------+--------------------------------
Comment (by mcs):
Replying to [comment:5 cypherpunks]:
> I've tried to implement this myself, but didn't get it to work.
>
> '''torbutton.js:'''
> {{{
> var { Hotkey } = require("sdk/hotkeys");
> ...
> }}}
>
> What could be the problem? Is it some isolation in TBB that's not
allowing a hotkey listener?
Your code is written for an Add-on SDK based extension, but Torbutton is
an old-style XUL extension. I have not tried this kind of thing lately,
but adding an accesskey attribute to the correct menuitem should work.
Some references:
https://developer.mozilla.org/en-
US/docs/Mozilla/Tech/XUL/Tutorial/Keyboard_Shortcuts
https://developer.mozilla.org/en-
US/docs/Mozilla/Tech/XUL/Attribute/accesskey
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17599#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs