diff options
| -rw-r--r-- | content_scripts/mode_find.coffee | 7 | ||||
| -rw-r--r-- | pages/vomnibar.coffee | 1 |
2 files changed, 3 insertions, 5 deletions
diff --git a/content_scripts/mode_find.coffee b/content_scripts/mode_find.coffee index f19b5db4..5090e4ee 100644 --- a/content_scripts/mode_find.coffee +++ b/content_scripts/mode_find.coffee @@ -104,7 +104,6 @@ class FindMode extends Mode # escape sequences. '\' is the escape character and needs to be escaped itself to be used as a normal # character. here we grep for the relevant escape sequences. @query.isRegex = Settings.get 'regexFindMode' - hasNoIgnoreCaseFlag = false @query.parsedQuery = @query.rawQuery.replace /(\\{1,2})([rRI]?)/g, (match, slashes, flag) => return match if flag == "" or slashes.length != 1 switch (flag) @@ -112,12 +111,10 @@ class FindMode extends Mode @query.isRegex = true when "R" @query.isRegex = false - when "I" - hasNoIgnoreCaseFlag = true "" - # default to 'smartcase' mode, unless noIgnoreCase is explicitly specified - @query.ignoreCase = !hasNoIgnoreCaseFlag && !Utils.hasUpperCase(@query.parsedQuery) + # Implement smartcase. + @query.ignoreCase = not Utils.hasUpperCase(@query.parsedQuery) regexPattern = if @query.isRegex @query.parsedQuery diff --git a/pages/vomnibar.coffee b/pages/vomnibar.coffee index 8c790ca8..ec5f818f 100644 --- a/pages/vomnibar.coffee +++ b/pages/vomnibar.coffee @@ -57,6 +57,7 @@ class VomnibarUI # This ensures that the vomnibar is actually hidden before any new tab is created, and avoids flicker after # opening a link in a new tab then returning to the original tab (see #1485). hide: (@onHiddenCallback = null) -> + @input.blur() UIComponentServer.postMessage "hide" @reset() |
