Bug 463363 - ctrlTab event handler should ignore events from nested popups, e.g. context menus. r=gavin

This commit is contained in:
Dão Gottwald 2008-11-06 19:45:48 +01:00
parent 0eebc5cafa
commit ca58f700bd

View File

@ -631,16 +631,19 @@ var ctrlTab = {
this.selectThumbnail();
break;
case "popupshown":
if (this.sticky)
if (this.sticky && event.target == this.panel)
this.searchField.focus();
break;
case "popuphiding":
this.onPopupHiding();
if (event.target == this.panel)
this.onPopupHiding();
break;
case "popuphidden":
// Destroy the widget in order to prevent outdated content
// when re-opening the panel.
this.panel.hidden = true;
if (event.target == this.panel) {
// Destroy the widget in order to prevent outdated content
// when re-opening the panel.
this.panel.hidden = true;
}
break;
}
}