mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
Bug 463363 - ctrlTab event handler should ignore events from nested popups, e.g. context menus. r=gavin
This commit is contained in:
parent
39c0beb0d9
commit
e14de76132
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user