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

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: 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
« no previous file with comments | « no previous file | chrome/browser/resources/shared/js/util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..dc7d00112e80c7929e4de54b6eb1489797e121f1 100644
--- a/chrome/browser/resources/chromeos/login/login.js
+++ b/chrome/browser/resources/chromeos/login/login.js
@@ -179,6 +179,11 @@ cr.define('cr.ui', function() {
var Oobe = cr.ui.Oobe;
-disableTextSelectAndDrag();
+// Allow selection events specifically on InputElements (password field)
+// bug (125863)
Nikita (slow) 2012/07/24 20:12:32 nit: Please add http://crosbug.com/ so that link i
Harry McCleave 2012/07/24 21:18:04 Done.
+function ReturnTrueOnInputElement(e) {
+ return (e.srcElement instanceof HTMLInputElement);
+}
+disableTextSelectAndDrag(ReturnTrueOnInputElement);
document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize);
« no previous file with comments | « no previous file | chrome/browser/resources/shared/js/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698