Bug 418120 - Double click on bookmark item in places library does not open in main window. r=dietrich.

This commit is contained in:
mozilla.mano%sent.com 2008-02-20 17:10:26 +00:00
Родитель e40d372df6
Коммит 5c9a393f74
2 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -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);">