js: Add caps-lock Warning to the dialogs
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/619
This commit is contained in:

committed by
Florian Müllner

parent
1d54f1e6ab
commit
474dda7ffe
@ -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) {
|
||||
|
Reference in New Issue
Block a user