Bug 587951 - Fix loop in escape/back key handling [r=mfinkle]

--HG--
extra : rebase_source : bcab17b7fcc93df0d82b27e40e25072d5a1201d7
This commit is contained in:
Matt Brubeck 2010-08-17 09:38:45 -07:00
parent e2b96f75cf
commit 4a93c1a243

View File

@ -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();