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

Commit

Permalink
Merge pull request #33175 from begeeben/1222359_user_cannot_press_ok
Browse files Browse the repository at this point in the history
Bug 1222359 - [TV Browser] User cannot press OK to open the "Forgot y…
  • Loading branch information
begeeben committed Nov 17, 2015
2 parents 2bf7196 + 436602a commit 8640f15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tv_apps/smart-system/fxa/js/screens/fxam_enter_password.js
Expand Up @@ -122,6 +122,12 @@ var FxaModuleEnterPassword = (function() {
_forgotPassword.bind(this),
false
);

this.fxaForgotPassword.addEventListener('keypress', e => {
if (e.keyCode && e.keyCode === KeyEvent.DOM_VK_RETURN) {
_forgotPassword.bind(this)();
}
});
// Avoid repeated initialization
this.initialized = true;
}
Expand Down

0 comments on commit 8640f15

Please sign in to comment.