зеркало из https://github.com/mozilla/pjs.git
Bug 500710: double clicking in the url bar should select all, r=vingtetun
This commit is contained in:
Родитель
aaefbd90d4
Коммит
cb9bc44293
|
@ -217,7 +217,7 @@ pref("browser.xul.error_pages.enabled", true);
|
|||
// various and sundry awesomebar prefs (should remove/re-evaluate
|
||||
// these once bug 447900 is fixed)
|
||||
pref("browser.urlbar.clickSelectsAll", true);
|
||||
pref("browser.urlbar.doubleClickSelectsAll", false);
|
||||
pref("browser.urlbar.doubleClickSelectsAll", true);
|
||||
pref("browser.urlbar.autoFill", false);
|
||||
pref("browser.urlbar.matchOnlyTyped", false);
|
||||
pref("browser.urlbar.matchBehavior", 1);
|
||||
|
|
|
@ -323,7 +323,9 @@ var BrowserUI = {
|
|||
this._favicon.addEventListener("error", this, false);
|
||||
this._autocompleteNavbuttons = document.getElementById("autocomplete_navbuttons");
|
||||
|
||||
document.getElementById("urlbar-editarea").addEventListener("click", this, false);
|
||||
let urlbarEditArea = document.getElementById("urlbar-editarea");
|
||||
urlbarEditArea.addEventListener("click", this, false);
|
||||
urlbarEditArea.addEventListener("mousedown", this, false);
|
||||
|
||||
document.getElementById("tabs").addEventListener("TabSelect", this, true);
|
||||
|
||||
|
@ -576,6 +578,14 @@ var BrowserUI = {
|
|||
this._editToolbar(false);
|
||||
}
|
||||
break;
|
||||
case "mousedown":
|
||||
if (aEvent.detail == 2 &&
|
||||
aEvent.button == 0 &&
|
||||
gPrefService.getBoolPref("browser.urlbar.doubleClickSelectsAll")) {
|
||||
this._edit.editor.selectAll();
|
||||
aEvent.preventDefault();
|
||||
}
|
||||
break;
|
||||
// Favicon events
|
||||
case "error":
|
||||
this._favicon.src = "chrome://browser/skin/images/default-favicon.png";
|
||||
|
|
Загрузка…
Ссылка в новой задаче