Checking in patch from mossop@blueprintit.co.uk to make context menu open work in places bar subfolders. r=annie.sullivan@gmail.com bug=325782

git-svn-id: svn://10.0.0.236/trunk@190465 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
annie.sullivan%gmail.com
2006-02-18 00:23:40 +00:00
parent b413498bf1
commit 20aadf8e9b
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<commandset id="placesCommands"
commandupdater="true" events="focus,select,mousedown"
commandupdater="true" events="focus,select,mousedown,click"
oncommandupdate="PlacesController.onCommandUpdate()">
<command id="placesCmd_find" label="&cmd.find.label;" accesskey="&cmd.find.accesskey;"
oncommand="PlacesSearchBox.focus();"/>

View File

@@ -598,6 +598,9 @@
return;
this._selection = event.target.node;
PlacesController.activeView = this;
// When right clicking an item in a bookmarks menu the places commands
// need to be updated for the context menu to appear correctly.
document.commandDispatcher.updateCommands("click");
// Only left and middle clicks should load the URI
if (event.button > 1)
return;