From 9315aa773f40d90f514f27ad6e16348ff7f836ea Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Wed, 19 Oct 2011 14:06:28 +0100
Subject: [PATCH] User can now press CTRL-C in the email field.

Instead of using the keyup event to listen for changes on the email field, use the input/propertychange events.

close #406
---
 .../static/dialog/controllers/authenticate_controller.js      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/browserid/static/dialog/controllers/authenticate_controller.js b/browserid/static/dialog/controllers/authenticate_controller.js
index 4daaa55d7..412623eea 100644
--- a/browserid/static/dialog/controllers/authenticate_controller.js
+++ b/browserid/static/dialog/controllers/authenticate_controller.js
@@ -209,7 +209,9 @@
       }
     },
 
-    "#email keyup": enterEmailState,
+    // The next two events are part of the HTML5 spec
+    "#email propertychange": enterEmailState,
+    "#email input": enterEmailState,
     "#forgotPassword click": forgotPasswordState,
     "#cancel_forgot_password click": cancelForgotPassword
   });
-- 
GitLab