Bug 405344 - "Clicking star should not select address bar (Inconsistent behaviour)" [p=dao@mozilla.com (D��o Gottwald) r=Mano a=blocking-firefox3+]

This commit is contained in:
reed%reedloden.com 2007-12-01 21:04:09 +00:00
Родитель e69ceeec07
Коммит 39443eab23
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -786,7 +786,11 @@ var PlacesStarButton = {
},
onClick: function PSB_onClick(aEvent) {
PlacesCommandHook.bookmarkCurrentPage(this._starred);
if (aEvent.button == 0)
PlacesCommandHook.bookmarkCurrentPage(this._starred);
// don't bubble to the textbox so that the address won't be selected
aEvent.stopPropagation();
},
// nsINavBookmarkObserver

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

@ -302,7 +302,7 @@
onclick="goDoCommand('safebrowsing-show-warning')"/>
#endif
<image id="star-button"
onclick="if (event.button == 0) PlacesStarButton.onClick(event);"/>
onclick="PlacesStarButton.onClick(event);"/>
<image id="go-button" chromedir="&locale.dir;"
tooltiptext="&goEndCap.tooltip;"
onclick="handleURLBarCommand(event);"/>