Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2003 > April

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

				  



MarketPlace

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.

Villanova University Six Sigma & IT Certificate Programs
100% Online programs in Six Sigma, IS Security, CISSP Prep, Business Analysis, Proj. Mgmt. and more!

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Wanna see your ad here?