Bug 365823, Mouse buttons 4 and 5 don't control back/forward buttons in Seamonkey r+sr=Neil

This commit is contained in:
Olli.Pettay%helsinki.fi 2007-02-21 13:00:38 +00:00
parent e9dbff61af
commit bb36ebed84

View File

@ -480,6 +480,36 @@ nsBrowserAccess.prototype = {
}
}
function HandleAppCommandEvent(aEvent)
{
aEvent.stopPropagation();
switch (aEvent.command) {
case "Back":
BrowserBack();
break;
case "Forward":
BrowserForward();
break;
case "Reload":
BrowserReloadSkipCache();
break;
case "Stop":
BrowserStop();
break;
case "Search":
BrowserSearchInternet();
break;
case "Bookmarks":
BrowserEditBookmarks();
break;
case "Home":
BrowserHome(null);
break;
default:
break;
}
}
function Startup()
{
// init globals
@ -690,6 +720,8 @@ function Startup()
addEventListener("PopupWindow", onPopupWindow, true);
addEventListener("DOMPopupBlocked", onPopupBlocked, true);
addEventListener("AppCommand", HandleAppCommandEvent, true);
// does clicking on the urlbar select its contents?
gClickSelectsAll = pref.getBoolPref("browser.urlbar.clickSelectsAll");
gClickAtEndSelects = pref.getBoolPref("browser.urlbar.clickAtEndSelects");