Tuesday, July 1, 2008

Change Shortcut Key for Firefox Download Manager

Firefox is officially supported by Peoplesoft PIA, and it works fine most of the time. But advanced users may have found they were stuck when trying to invoke system info screen - they hit CTRL-J in FF as they did in IE but saw no system info appeared. Instead, FF popped up a download manager window.

The reason is simple: CTRL-J is being used by FF as a shortcut key for download manager. And unfortunately, FF is not shipping a direct way for user to customize those keys. 'about:config' doesn't enable you to do that.

But there are still ways to tweak it:

1) With add-on. An unofficial FF add-on, 'keyconfig', is available at
http://forums.mozillazine.org/viewtopic.php?t=72994. With that you are free to customize shortcut keys for FF, provided you know how to manually edit FF's user preference file (perfs.js). If you can't or don't want, install one more add-on, 'functions for keyconfig' from http://www.pqrs.org/tekezo/firefox/extensions/functions_for_keyconfig/index.html. This enables you to change keys through UI.

2) Without add-on. Knowing where to get a tool is good, but doing it w/o a tool is cool, right?


Let's look at how FF launches download manager first. Explorer %FIREFOX_HOME%\chrome, find the following 2 files:

  • browser.jar
  • en-US.jar

Unjar browser.jar into %TEMP%, find browser.xul from extracted files and open it in your text editor, you see a line that looks like

  • <menuitem id="menu_openDownloads" label="&downloads.label;" key="key_openDownloads" accesskey="&downloads.accesskey;" command="Tools:Downloads"/>
Note the highlighted 'key' attribute, this obviously defines a shortcut key for download manager menu. Remove it to disable the key.

But what if you only want to change the shortcut key rather than disabling it? Let's look at how "key_openDownloads" is defined. In the same browser.xul, you see

  • <key id="key_openDownloads" key="&downloads.commandkey;" command="Tools:Downloads" modifiers="accel"/>
The highlighted attribute denotes the key value, but how do we know what "&downloads.commandKey;" actually is?

Now extract en-US.jar into %TEMP%, find browser.dtd in which you see

  • <!ENTITY downloads.commandkey "j">
The truth is out there!. Change 'j' to whatever you prefer, but make sure the new key doesn't conflict with other FF shortcuts.

Stuff the modified browser.xul or/and browser.dtd back into the jar files. Open FF and see whether it works.

This tip applies to both FireFox 2 and 3.

9 comments:

Anonymous said...

[url=http://www.cheapcanadagooseparkas.ca]canada goose chilliwack[/url] To beef up your bottom half, try skirts that flare. [url=http://www.busesbitermi.com]dr dre beats heartbeats cheap[/url] Dptawd
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin shoe sale[/url] [url=http://www.ogrelarp.com]http://www.ogrelarp.com[/url] Vjuajb [url=http://www.pandorajewelryukonsale.co.uk]pandora bracelet charms[/url]

Anonymous said...

[url=http://www.cheapcanadagooseparkas.ca]canada goose citadel[/url] Initially, I was irritated because I knew he wanted me to drop everything I was doing and bail him out of his predicament. [url=http://www.busesbitermi.com]cheap beats by dre[/url] Vgzrlv
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin outlet online[/url] [url=http://www.ogrelarp.com]Canada Goose Parka[/url] Dsgqll [url=http://www.pandorajewelryukonsale.co.uk]pandora bracelet charms[/url]

Anonymous said...

[url=http://www.cheapcanadagooseparkas.ca]canada goose chilliwack[/url] It was all one color and was a pretty simple, non outlandish styled hoodie. [url=http://www.busesbitermi.com]dr dre beats heartbeats cheap[/url] Qepqfh
[url=http://www.christianlouboutindiscountsale.co.uk]christian louboutin uk[/url] [url=http://www.ogrelarp.com]Canada Goose Parka[/url] Hmgkah [url=http://www.pandorajewelryukonsale.co.uk]pandora bracelet charms[/url]

Anonymous said...

who is chelsey lately dating http://loveepicentre.com/advice.php dating and how slow is slow

Anonymous said...

ebook converter for ipod http://audiobookscollection.co.uk/fr/Photoshop-Elements-8-Digital-Classroom/p155396/ relational database design clearly explained ebook [url=http://audiobookscollection.co.uk/Cycad-Classification/p163464/]unfair dismissal 4ed ebook[/url] ebook free download the moon key

Anonymous said...

panorama photo stitch software free download http://buyoem.co.uk/category-100-104/Software-Plugins?page=4 sierra print artist software [url=http://buyoem.co.uk/de/product-15305/ForkLift-1-1-Mac]mayan calender software[/url] blackberry monitor software
[url=http://buyoem.co.uk/account/login]Account Login - Software Store[/url] xp anti spy software
[url=http://buyoem.co.uk/es/product-36824/GFI-EventsManager-11-2][img]http://buyoem.co.uk/image/7.gif[/img][/url]

Anonymous said...

[url=http://redbrickstore.co.uk/products/erectalis.htm][img]http://onlinemedistore.com/6.jpg[/img][/url]
pharmacy st louis http://redbrickstore.co.uk/products/buspar.htm pharmacy jobs in quincy il [url=http://redbrickstore.co.uk/products/viagra-soft-flavoured.htm]i care pharmacy[/url]
cvs pharmacy online myspace http://redbrickstore.co.uk/products/sumycin.htm quality improvement and pharmacy [url=http://redbrickstore.co.uk/products/zovirax.htm]zovirax[/url]
part time pharmacy technician jobs in san diego http://redbrickstore.co.uk/products/actonel.htm pharmacy postgraduate schorlarships [url=http://redbrickstore.co.uk/products/activ8--energy-booster-.htm]pharmacy wanaque[/url]
pharmacy logo pestle http://redbrickstore.co.uk/products/kamasutra-longlast-condoms.htm amadaeus pharmacy [url=http://redbrickstore.co.uk/products/eurax.htm]eurax[/url]

Anonymous said...

[url=http://certifiedpharmacy.co.uk/categories/hypnotherapy.htm][img]http://onlinemedistore.com/7.jpg[/img][/url]
pharmacy in india http://certifiedpharmacy.co.uk/products/cipro.htm cannon pharmacy nc [url=http://certifiedpharmacy.co.uk/products/ponstel.htm]malouf pharmacy competition[/url]
midwestern university college of pharmacy http://certifiedpharmacy.co.uk/catalogue/v.htm ilegal online pharmacy [url=http://certifiedpharmacy.co.uk/products/compazine.htm]compazine[/url]
pharmacy errors http://certifiedpharmacy.co.uk/products/paroxetine.htm community pharmacy residencies in arkansas [url=http://certifiedpharmacy.co.uk/products/suhagra.htm]katsaros pharmacy hyde park[/url]
best online pharmacy http://certifiedpharmacy.co.uk/products/entocort.htm pharmacy bulletin board [url=http://certifiedpharmacy.co.uk/products/aldactone.htm]aldactone[/url]

Anonymous said...

[url=http://englandpharmacy.co.uk/products/levitra.htm][img]http://onlinemedistore.com/9.jpg[/img][/url]
pharmacy costs trend http://englandpharmacy.co.uk/products/parlodel.htm machias freindly pharmacy [url=http://englandpharmacy.co.uk/products/zovirax.htm]valium online foreign pharmacy[/url]
mirapex mail order pharmacy http://englandpharmacy.co.uk/products/leukeran.htm locations open quick select trip pharmacy scottsdale hours [url=http://englandpharmacy.co.uk/products/lioresal.htm]lioresal[/url]
how long does it take to a doctorate in pharmacy http://englandpharmacy.co.uk/products/celexa.htm hospital pharmacy policies [url=http://englandpharmacy.co.uk/products/gift-kamagra-jelly.htm]education making pharmacy technicians better employees[/url]
ecarts pharmacy http://englandpharmacy.co.uk/catalogue/q.htm pharmacy technician online training [url=http://englandpharmacy.co.uk/products/zyrtec.htm]zyrtec[/url]