LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org 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.

Notices



Reply
 
Search this Thread
Old 03-07-2009, 08:49 PM   #1
fields
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

Problem:
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!)

Howto:
1) Open up nautilus browser as Root. (In terminal, type:
Code:
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:
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?

Thanks!
_________________
--
e.m.fields
 
  


Reply

Tags
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 Off
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 02:41 AM
can Firefox use keyboard shortcuts? newbiesforever Linux - Software 1 04-18-2007 02:54 PM
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 01:40 AM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 10:36 PM
kde "keyboard shortcuts": can't change modifiers & says no windows key peb Linux - Newbie 0 01-02-2004 05:41 PM


All times are GMT -5. The time now is 10:04 PM.

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