*/
SkeletonKey.prototype._init = function() {
this._generateButton.onclick = this._onGenerate.bind(this);
+
+ this._password.labels[0].onclick = this._selectPassword.bind(this);
};
/**
var hexString = key.toString();
hexString = this._capitalizeKey(hexString);
this._password.value = hexString;
- this._password.focus();
- this._password.select();
+ this._selectPassword();
};
/**
return newKey;
};
+
+/**
+ * Selects the contents of the generated password.
+ * @private
+ */
+SkeletonKey.prototype._selectPassword = function() {
+ this._password.focus();
+ this._password.select();
+};