mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 584545 - Make "Find" bar a popup, so it can be dismissed with escape/back key [r=mfinkle]
This commit is contained in:
parent
1058932658
commit
b2abdd45fc
@ -1471,6 +1471,7 @@ var FindHelperUI = {
|
||||
},
|
||||
|
||||
show: function findHelperShow() {
|
||||
BrowserUI.pushPopup(this, this._container);
|
||||
Browser._browserView.ignorePageScroll(true);
|
||||
this._container.show(this);
|
||||
this.search("");
|
||||
@ -1478,6 +1479,7 @@ var FindHelperUI = {
|
||||
},
|
||||
|
||||
hide: function findHelperHide() {
|
||||
BrowserUI.popPopup();
|
||||
Browser._browserView.ignorePageScroll(false);
|
||||
this._textbox.value = "";
|
||||
this._container.hide(this);
|
||||
@ -1506,9 +1508,8 @@ var FindHelperUI = {
|
||||
let title = Elements.browserBundle.getString("pageactions.findInPage");
|
||||
let node = PageActions.appendItem("findinpage", title, "");
|
||||
node.onclick = function(event) {
|
||||
BrowserUI._hidePopup();
|
||||
FindHelperUI.show();
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
_zoom: function _findHelperZoom(aElementRect) {
|
||||
|
Loading…
Reference in New Issue
Block a user