mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 463363 - ctrlTab event handler should ignore events from nested popups, e.g. context menus. r=gavin
This commit is contained in:
parent
0eebc5cafa
commit
ca58f700bd
@ -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