Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2784)

Unified Diff: chrome/browser/resources/chromeos/login/login.js

Issue 10796115: Enabled Selection (ctrl-A) on login password (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code cleanup Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/login/login.js
diff --git a/chrome/browser/resources/chromeos/login/login.js b/chrome/browser/resources/chromeos/login/login.js
index 5e46fbe4343447185806d39d3ffb25047bb4958e..b6096e05c070f4a0ead3de753a1a9a00e51bbdfa 100644
--- a/chrome/browser/resources/chromeos/login/login.js
+++ b/chrome/browser/resources/chromeos/login/login.js
@@ -179,6 +179,10 @@ cr.define('cr.ui', function() {
var Oobe = cr.ui.Oobe;
-disableTextSelectAndDrag();
+// Allow selection events specifically on InputElements (password field)
+// bug (http://code.google.com/p/chromium/issues/detail?id=125863)
+disableTextSelectAndDrag(function(e) {
+ return e.target instanceof HTMLInputElement;
Dan Beam 2012/07/24 23:07:49 Copy pasta detected, remove two spaces from this l
Harry McCleave 2012/07/24 23:21:15 The behavior identified in the bug was on a passwo
Dan Beam 2012/07/25 00:04:59 You may want to allow <textarea>s as well then, pe
+ });
document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize);
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/oobe.js » ('j') | chrome/browser/resources/shared/js/util.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698