1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 21:38:11 +01:00

fix case sensitivity of search highlighting - gFindBar.setCaseSensitivity() in

FF2 does not set the preference as _setCaseSensitivity() does in FF3
This commit is contained in:
Doug Kearns
2007-09-09 10:22:53 +00:00
parent 1c032bcba6
commit 89cd85d06c

View File

@@ -205,7 +205,10 @@ function Search() //{{{
if (!word)
word = lastsearch;
gFindBar.setCaseSensitivity(case_sensitive)
// NOTE: setCaseSensitivity() in FF2 does NOT set the
// accessibility.typeaheadfind.casesensitive pref as needed by
// highlightDoc()
gFindBar.mTypeAheadCaseSensitive = case_sensitive ? 1 : 0;
gFindBar.highlightDoc("yellow", "black", word);
}