A Problem with the Quick Find Bar
Hi,
I’ve added the following line to userChrome.css, and FF opens the Quick Find Bar with the ‘Find Next’ and ‘Find Previous’ buttons.
.findbar-container > * { display:-moz-box !important; }
With Those buttons, there isn’t enough space in the Quick Bar, and when the description ‘End of Page’ (etc) shows – it is only partially displayed.
How do I change the label text from ‘Quick Search:’ to ‘Find:’?
And apropos the Find Bar.
I have a toolbar button which toggles the Find Bar on and off. I’d like that button to be checked when the Find Bar is visible, and unchecked when it is hidden.
I’ve added the following line to an xul file, and it works perfectly.
<command id="cmd_find" oncommand="gFindBar.onFindCommand(); setFindCkeckState();"/>
For some reason, FF ignores the "cmd_findClose" id.
<command id="cmd_findClose" oncommand="gFindBar.close(); setFindCkeckState ();"/>
Why? Is it possible to add an Event Listener for the Find bar being opened or closed? Can I check and uncheck that button in a css file? (That would be better).
Thanks.
Geändert am
Alle Antworten (2)
I use this command in a PrefBar button to toggle the Find bar on/off
if (gFindBar.hidden) gFindBar.onFindCommand(); else gFindBar.close();
Thanks for the code.
I'd also like the button to be checked if I press Ctrl+F. Any idea? Is it possible to check and uncheck buttons in css?
I appreciate your help.