зеркало из https://github.com/mozilla/pjs.git
Bug 567613 - Make entire urlbar edit area touchable [r=mfinkle]
This commit is contained in:
Родитель
32330492f9
Коммит
79d4676f17
|
@ -405,7 +405,7 @@ var BrowserUI = {
|
||||||
this._favicon.addEventListener("error", this, false);
|
this._favicon.addEventListener("error", this, false);
|
||||||
|
|
||||||
let urlbarEditArea = document.getElementById("urlbar-editarea");
|
let urlbarEditArea = document.getElementById("urlbar-editarea");
|
||||||
urlbarEditArea.addEventListener("mouseup", this, false);
|
urlbarEditArea.addEventListener("click", this, false);
|
||||||
urlbarEditArea.addEventListener("mousedown", this, false);
|
urlbarEditArea.addEventListener("mousedown", this, false);
|
||||||
|
|
||||||
document.getElementById("toolbar-main").ignoreDrag = true;
|
document.getElementById("toolbar-main").ignoreDrag = true;
|
||||||
|
@ -763,10 +763,8 @@ var BrowserUI = {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
// URL textbox events
|
// URL textbox events
|
||||||
case "mouseup":
|
case "click":
|
||||||
if (aEvent.detail < 2 && aEvent.button == 0 && gFocusManager.focusedElement == this._edit.inputField) {
|
this.doCommand("cmd_openLocation");
|
||||||
this.doCommand("cmd_openLocation");
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case "mousedown":
|
case "mousedown":
|
||||||
if (!this._isEventInsidePopup(aEvent))
|
if (!this._isEventInsidePopup(aEvent))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче