mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 365823, Mouse buttons 4 and 5 don't control back/forward buttons in Seamonkey r+sr=Neil
This commit is contained in:
parent
e9dbff61af
commit
bb36ebed84
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user