js: Add caps-lock Warning to the dialogs

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/619
This commit is contained in:
Umang Jain
2019-12-18 01:33:45 +05:30
committed by Florian Müllner
parent 1d54f1e6ab
commit 474dda7ffe
5 changed files with 23 additions and 0 deletions

View File

@ -119,6 +119,9 @@ var AuthPrompt = GObject.registerClass({
this._entry.grab_key_focus();
this._capsLockWarningLabel = new ShellEntry.CapsLockWarning();
this.add_child(this._capsLockWarningLabel);
this._message = new St.Label({
opacity: 0,
styleClass: 'login-dialog-message',
@ -212,6 +215,7 @@ var AuthPrompt = GObject.registerClass({
this.replace_child(this._entry, this._textEntry);
this._entry = this._textEntry;
}
this._capsLockWarningLabel.visible = secret;
}
_onAskQuestion(verifier, serviceName, question, secret) {