Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


  Search this Thread
Old 03-07-2009, 07:49 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
HOWTO: Change Keyboard Shortcuts in Iceweasel / Firefox

Hi all! This is my first post, hope it is useful.

How to: Change Keyboard Shortcuts in Iceweasel

I just switched over to Debian from Windows XP, and was annoyed I can't "Ctrl-Shift-B" to go to "Edit Bookmarks" in Iceweasel.

I looked it up, found that there is a Firefox addon that does this for you - (Addon: Keyboard Config)

However, it doesn't work for Iceweasel!

So - (And BTW, I'm no expert, I just stumbled my way though this by trial and error, so additions/comments/improvements are welcomed!)

1) Open up nautilus browser as Root. (In terminal, type:
gksudo nautilus
2) Navigate to "/usr/share/iceweasel/chrome"
3) Open up "browser.jar". (You may need to download Archive manager if you don't have it already)
4) Navigate to "/content/browser/" and open up "browser.xul" with text editor (by right-click > "open with" type in Application: "gedit")
5) Scroll down (or search) till you find section: Main Keyset. (<keyset id="mainKeyset">)
6) Look down towards the bottom of this section and find "addBookmarkAsKb", etc. (Doesn't really matter where you do this, I just put the code here for consistency. )
7) Right beneath that, enter this code:
    <key id="manBookmarksKb"  command="Browser:ShowAllBookmarks" key="B" modifiers="accel,shift"/>
8.) Save the file, exit. It should ask you if you want to recompile the Jar. Click yes.
9) Open up Iceweasel. (If you already had a copy open, close it first). Hit "Ctrl+Shift+B" and test it out! It should pop open the organize bookmarks menu!

Author's Comments:
So, this is probably not as exciting to everyone else as it is me, but I was pretty stoked to actually edit the code successfully. This is probably NOT THE PROPER METHOD. However, it works.
Now, if someone else with a little more knowledge can come along and show us how to change the rest of the keys, or perhaps show a better method, that'd be super.

Author's Requests:
... If not - Does anyone know how to make a script that will do this automatically? And furthermore, do you know how to create a script that will allow for editing all the keys? Furthermore - could this be packaged into a firefox addon?



firefox, iceweasel, keyboard, shortcuts

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto: edit the filetypes associated with a firefox/iceweasel plugin Tortanick Linux - Desktop 2 07-17-2007 01:41 AM
can Firefox use keyboard shortcuts? newbiesforever Linux - Software 1 04-18-2007 01:54 PM
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 12:40 AM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 09:36 PM
kde "keyboard shortcuts": can't change modifiers & says no windows key peb Linux - Newbie 0 01-02-2004 04:41 PM > Forums > Linux Forums > Linux - General > Member Success Stories

All times are GMT -5. The time now is 08:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration