mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 20:07:59 +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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user