mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 587951 - Fix loop in escape/back key handling [r=mfinkle]
--HG-- extra : rebase_source : bcab17b7fcc93df0d82b27e40e25072d5a1201d7
This commit is contained in:
parent
e2b96f75cf
commit
4a93c1a243
@ -649,7 +649,9 @@ var BrowserUI = {
|
||||
} catch(e) { }
|
||||
},
|
||||
|
||||
handleEscape: function () {
|
||||
handleEscape: function (aEvent) {
|
||||
aEvent.stopPropagation();
|
||||
|
||||
// Check open dialogs
|
||||
let dialog = this.activeDialog;
|
||||
if (dialog) {
|
||||
@ -710,7 +712,7 @@ var BrowserUI = {
|
||||
// Window events
|
||||
case "keypress":
|
||||
if (aEvent.keyCode == aEvent.DOM_VK_ESCAPE)
|
||||
this.handleEscape();
|
||||
this.handleEscape(aEvent);
|
||||
break;
|
||||
case "AppCommand":
|
||||
aEvent.stopPropagation();
|
||||
|
Loading…
Reference in New Issue
Block a user