Bug 717492 - [New Tab Page] URL bar history pops up when pressing toolbar buttons; r=dao

This commit is contained in:
Tim Taubert 2012-01-25 23:47:36 +01:00
Родитель 68bd782d90
Коммит 9aa8c41ee6
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -24,6 +24,16 @@ let gToolbar = {
let handler = function () self[aType]();
button.addEventListener("click", handler, false);
#ifdef XP_MACOSX
// Per default buttons lose focus after being clicked on Mac OS X.
// So when the URL bar has focus and a toolbar button is clicked the
// URL bar regains focus and the history pops up. We need to prevent
// that by explicitly removing its focus.
button.addEventListener("mousedown", function () {
window.focus();
}, false);
#endif
}, this);
},