зеркало из https://github.com/mozilla/pjs.git
Bug 598691 - "Tab matches from secondary window are not switching on click" [r=dolske a=blocking]
--HG-- extra : rebase_source : 18f64cfe22bd1b76314167059137426b90607062
This commit is contained in:
Родитель
5a73d4c36b
Коммит
0eb9322df3
|
@ -363,11 +363,11 @@ SearchEventHandlerClass.prototype = {
|
|||
var matches = matcher.matched();
|
||||
var others = matcher.matchedTabsFromOtherWindows();
|
||||
if (event.which == event.DOM_VK_RETURN && (matches.length > 0 || others.length > 0)) {
|
||||
if (matches.length > 0)
|
||||
hideSearch(event);
|
||||
if (matches.length > 0)
|
||||
matches[0].zoomIn();
|
||||
else
|
||||
TabUtils.focus(others[0]);
|
||||
hideSearch(event);
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -429,7 +429,8 @@ var TabHandlers = {
|
|||
// by the number of matches within the window.
|
||||
var item = iQ("<div/>")
|
||||
.addClass("inlineMatch")
|
||||
.click(function(){
|
||||
.click(function(event){
|
||||
hideSearch(event);
|
||||
TabUtils.focus(tab);
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче