mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Add findbar.termPerTab
Allow the pref to switch between global search term and per-tab search term
This commit is contained in:
parent
6663a8fe28
commit
58f6d1953c
2 changed files with 5 additions and 1 deletions
|
|
@ -908,6 +908,7 @@ pref("findbar.highlightAll", false);
|
|||
pref("findbar.modalHighlight", false);
|
||||
pref("findbar.entireword", false);
|
||||
pref("findbar.iteratorTimeout", 100);
|
||||
pref("findbar.termPerTab", false);
|
||||
|
||||
// use Mac OS X Appearance panel text smoothing setting when rendering text, disabled by default
|
||||
pref("gfx.use_text_smoothing_setting", false);
|
||||
|
|
|
|||
|
|
@ -282,6 +282,7 @@
|
|||
return this._browser;
|
||||
]]></getter>
|
||||
<setter><![CDATA[
|
||||
let prefsvc = this._prefsvc;
|
||||
if (this._browser) {
|
||||
if (this._browser.messageManager) {
|
||||
this._browser.messageManager.removeMessageListener("Findbar:Keypress", this);
|
||||
|
|
@ -300,7 +301,9 @@
|
|||
this._browser.messageManager.addMessageListener("Findbar:Mouseup", this);
|
||||
this._browser.finder.addResultListener(this);
|
||||
|
||||
this._findField.value = this._browser._lastSearchString;
|
||||
if (prefsvc.getBoolPref("findbar.termPerTab") == true) {
|
||||
this._findField.value = this._browser._lastSearchString;
|
||||
}
|
||||
}
|
||||
return val;
|
||||
]]></setter>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue