зеркало из https://github.com/mozilla/pjs.git
Bug 418120 - Double click on bookmark item in places library does not open in main window. r=dietrich.
This commit is contained in:
Родитель
e40d372df6
Коммит
5c9a393f74
|
@ -257,12 +257,8 @@ var PlacesOrganizer = {
|
||||||
this._places.selectPlaceURI(aContainer.uri);
|
this._places.selectPlaceURI(aContainer.uri);
|
||||||
},
|
},
|
||||||
|
|
||||||
onContentTreeKeypress: function PO_onContentTreeKeypress(aEvent) {
|
openSelectedNode: function PU_openSelectedNode(aEvent) {
|
||||||
if (aEvent.keyCode == KeyEvent.DOM_VK_RETURN) {
|
this._content.controller.openSelectedNodeWithEvent(aEvent);
|
||||||
var node = this._content.selectedNode;
|
|
||||||
if (node && PlacesUtils.nodeIsURI(node))
|
|
||||||
this._content.controller.openSelectedNodeWithEvent(aEvent);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -418,7 +418,8 @@
|
||||||
<tree id="placeContent" class="placesTree" context="placesContext"
|
<tree id="placeContent" class="placesTree" context="placesContext"
|
||||||
flex="1" type="places"
|
flex="1" type="places"
|
||||||
flatList="true"
|
flatList="true"
|
||||||
onkeypress="PlacesOrganizer.onContentTreeKeypress(event);"
|
onkeypress="if (event.keyCode == KeyEvent.DOM_VK_RETURN) PlacesOrganizer.openSelectedNode(event);"
|
||||||
|
ondblclick="PlacesOrganizer.openSelectedNode(event);"
|
||||||
onopenflatcontainer="PlacesOrganizer.openFlatContainer(aContainer);"
|
onopenflatcontainer="PlacesOrganizer.openFlatContainer(aContainer);"
|
||||||
onselect="PlacesOrganizer.onContentTreeSelect();"
|
onselect="PlacesOrganizer.onContentTreeSelect();"
|
||||||
onclick="PlacesOrganizer.onTreeClick(event);">
|
onclick="PlacesOrganizer.onTreeClick(event);">
|
||||||
|
|
Загрузка…
Ссылка в новой задаче