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:
@@ -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();"/>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user