Mozilla Patch for IE like Ctrl+Enter behavior


This project is reopened! Mozilla 1.6 was released!



What is this patch for?
This patch makes Mozilla have a Ctrl+Enter in the URL bar as in Internet Explorer.
It also lets you switch to the default behavior by only modifying your prefs.js file.
The last version of this patch is for Mozilla 1.6.

What does Internet Explorer when you press Ctrl+Enter?
IE adds "http://www." at the begining and ".com" (if needed) at the end of what you have typed.
For example, if you type "netscape" and then press Ctrl+Enter, IE will autocomplete the URL
"netscape" to "http://www.netscape.com/" and the browser will load the www.netscape.com site.

Will Mozilla ever have this feature?
No, Mozilla developers decided that this feature is not needed. Mozilla already use the key
combination Ctrl+Enter for opening new windows.

Is there a Bug number in bugzilla?
Sure, but it is closed as WONTFIX.
Bug #37867

How can I help?
Well, the decision is already taken and the bug is closed. I don't know if Mozilla should have all
the UI features that Internet Explorer has. Maybe you can add a new bug or vote for the closed
bug #37867. Don't know if that will help.

How do I install the patch?
1. Patch the file navigator.js or download the patched navigator.js
The navigator.js file in Mozilla should be patched. You can download the patch from bug #37867 and patch
your navigator file or download the patched version of navigator.js.
After you have a patched navigator.js, you have to open Mozilla/chrome/comm.jar file and replace
navigator.js in that file.

2. Replace navigator.js in the compressed file comm.jar
*Make a copy of comm.jar before continuing*
To open the comm.jar file, just rename it to comm.jar.zip and open it with your favorite
program. The file navigator.js is inside the comm.jar file in this path:
comm.jar:/content/navigator/navigator.js
After you replace the navigator.js file, rename the comm.jar.zip file back to comm.jar
Mozilla should be closed while opening the comm.jar file.

3. Edit your preferences file prefs.js manually
After the navigator.js file is patched, close Mozilla and edit your prefs.js file. Add this lines to your prefs.js file:
user_pref("browser.fixup.ctrl_enter.autocompletion_only", true);
user_pref("browser.fixup.ctrl_enter.autocompletion_newwindow", false);

Please note that Mozilla will order the pref.js file, so the lines you just added won't be a the end of the file anymore.

4. If you have Mozilla 1.3b or greater
- Be sure to enable the option in Preferrences:
  Navigator->Smart Browsing->Domain Guessing
  Or this patch won't work.
- You can edit your pref.js using this UURL: "about:config"

5. Test Mozilla
Then, start Mozilla and enjoy the show.


Where do I download the patched navigator.js file?
Download from geocities.com:
Mozilla Build
File
Mozilla 1.6 navigator.js
Mozilla 1.4 navigator-14.js
Mozilla 1.4a navigator-14a.js
Mozilla 1.3 navigator-13.js
Mozilla 1.3b navigator-13b.js
Mozilla 1.3a
navigator-13a.js
Mozilla 1.2.1
navigator-121.js
Mozilla 1.2 navigator-12.js
Mozilla 1.2b
navigator-12b.js
Mozilla 1.2a
navigator-12a.js
Mozilla 1.1 navigator-11.js
Mozilla 1.0
not supported
Mozilla 1.0.1
not supported

In which Operating System will this patch work?
The patch has been tested in Mozilla 1.1/1.2a/1.2b/1.2/1.2.1/1.3a/1.3b/1.3/1.4a/1.4/1.6 on Windows XP. But, since it is a JavaScript patch, it should work on any platform that Mozilla runs.

Why did you did this patch?
To help IE users migrating from IE to Mozilla. And because I got adicted to it when I started using Windows XP.

Credits
The credit for this patch is on the discusion of bug #37867

Links:

What about Phoenix^H^H^H^H^H^H^H Firebird?
MozillaFirebird 0.7 rocks about this, it supports Ctrl+Enter like IE and many other combinations! Check the Phoenix keyboard shorcuts at Firebird Help.

Patch
The patch for the Mozilla 1.3 navigator.js is here
The patch for the Mozilla 1.4a navigator.js is here
The patch for the Mozilla 1.4 navigator.js is here
The patch for the Mozilla 1.6 navigator.js is here

Future
On 11-jul-2003 I closed this project because I thought that the new Mozilla Roadmap was to take effect on Mozilla 1.5. Well, that never happend and it will take a litle longer to replace the Application Suite with the standalone applications MozillaFirebird and MozillaThunderbird.
I'm on MozillaFirebird and MozillaThunderbird right now. They work just great!
I still use the Mozilla AppSuite when I need chatzilla or composer.

Sorry for previously closing this project, I will keep supporting it as long as I can.








Open Directory Project at dmoz.org  Get Mozilla Now! Get Firefox!


Made with Mozilla 1.6



back




26-jan-2004