Questions and
Answers
Amy Rich Q We've finally upgraded our Web browser software
on our user machines (FreeBSD 4.7-STABLE, if it matters) from Netscape 4.x to
Mozilla 1.1. My users are unhappy with two key things, though. They are used
to using the backspace key as page up, and opening new Web locations with ALT-o.
Neither of these things works anymore, and I've been unable to find a way to
change the default behavior from ALT-o doing an Open File, and backspace doing
nothing at all. Do you have any pointers on how to customize these things? I've
already dug through tons of documentation on Mozilla's Web pages and am more
dazed than helped.
A Since you said that ALT-o does an Open File,
I'm guessing that you've already figured out that to change the default accel
modifier key from Control to ALT, you must add the following to the users' prefs.js
files:
user_pref("ui.key.accelKey", 18);
user_pref("ui.key.menuAccessKey", 0);
The first line changes the accel key to ALT (as far as I know, the name for the
key, VK_ALT, doesn't work yet), and the second line turns off the ALT menu access.
To change the Open Location key sequence back to ALT-o, you need to change
/usr/X11R6/lib/mozilla/chrome/comm.jar. First, unzip comm.jar:
unzip comm.jar
This should leave you with a directory called content. Edit the file /usr/X11R6/lib/mozilla/chrome/content/navigator/navigatorOverlay.xul.
Since ALT-o is already claimed by Open File, we'll change Open File to be Shift-ALT-o.
Change the following lines:
<key id="openLocationKb" key="&openCmd.commandkey;" \
command="Browser:Open" modifiers="accel,shift"/>
<key id="openFileKb" key="&openFileCmd.c
|