jeffy777
Forum Addict
- Joined
- Feb 8, 2005
- Messages
- 6,518
- Location
- US
- Car(s)
- '04 Toyota Sienna, crippled people like vans....
This is something that has been bothering me for awhile now. I kept hoping Mozilla would fix it with each new release, but I finally got rid of it with the help of Google. Many firefox users have had this problem, so I thought I'd share. Interestingly, some people never experience this bug, while it can show up for other people on a daily basis.
Here's an example of the bug:
The ' and / keys are hotkeys that bring up the quick find box if you want to search the text on a webpage (similar to CTRL + F, but with less features). These hotkeys are supposed to be disabled whenever you are typing in a form element (textbox, textarea, etc.). However, occasionally when posting on a forum for example, including ' in a post would still bring up the Find box, and it becomes impossible to type ' in your post, which gets very frustrating after about the hundredth time this happens, which seems to be totally at random since it doesn't happen all the time.
Well, here's how to fix it:
Disable the ' and / hotkeys (CTRL + F works better anyway)
First, close Firefox.....
Open the following file with WinRAR or something similar (I use PowerArchiver), also a good idea to make a backup first:
C:\Program Files\Mozilla Firefox\chrome\toolkit.jar
Inside, open up:
content\global\findBar.js
Find these lines:
const CHAR_CODE_SLASH = "/".charCodeAt(0);
const CHAR_CODE_APOSTROPHE = "'".charCodeAt(0);
Replace them with;
const CHAR_CODE_SLASH = "".charCodeAt(0);
const CHAR_CODE_APOSTROPHE = "".charCodeAt(0);
(Note: you can change the hotkeys to something else if you want to...I just changed them to nothing)
Save and exit.
Life is now beautiful once again
Here's an example of the bug:
The ' and / keys are hotkeys that bring up the quick find box if you want to search the text on a webpage (similar to CTRL + F, but with less features). These hotkeys are supposed to be disabled whenever you are typing in a form element (textbox, textarea, etc.). However, occasionally when posting on a forum for example, including ' in a post would still bring up the Find box, and it becomes impossible to type ' in your post, which gets very frustrating after about the hundredth time this happens, which seems to be totally at random since it doesn't happen all the time.
Well, here's how to fix it:
Disable the ' and / hotkeys (CTRL + F works better anyway)
First, close Firefox.....
Open the following file with WinRAR or something similar (I use PowerArchiver), also a good idea to make a backup first:
C:\Program Files\Mozilla Firefox\chrome\toolkit.jar
Inside, open up:
content\global\findBar.js
Find these lines:
const CHAR_CODE_SLASH = "/".charCodeAt(0);
const CHAR_CODE_APOSTROPHE = "'".charCodeAt(0);
Replace them with;
const CHAR_CODE_SLASH = "".charCodeAt(0);
const CHAR_CODE_APOSTROPHE = "".charCodeAt(0);
(Note: you can change the hotkeys to something else if you want to...I just changed them to nothing)
Save and exit.
Life is now beautiful once again
Last edited: