Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1227013 - Failed to leave the error page by pressing ESC (back bu… #33413

Merged
merged 1 commit into from
Nov 30, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion tv_apps/smart-system/fxa/js/fxam_error_overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ var FxaModuleErrorOverlay = {
}
});
this.fxaErrorOk.addEventListener('keyup', e => {
if (e.keyCode & e.keyCode === KeyEvent.DOM_VK_RETURN) {
if (e.keyCode &&
(e.keyCode === KeyEvent.DOM_VK_RETURN ||
e.keyCode === KeyEvent.DOM_VK_ESCAPE)) {
this.fxaErrorOk.classList.remove('active');
this.hide();
}
Expand Down