mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
shellEntry: Disable copy action for password entries
Curently it is possible to copy the content of password entries, and paste it elsewhere in clear text. This is undesirable, so follow GTK+'s behavior and disable the copy action for password entries. https://bugzilla.gnome.org/show_bug.cgi?id=695104
This commit is contained in:
parent
b52f4ed25b
commit
9e31f05861
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,8 @@ const EntryMenu = new Lang.Class({
|
|||
|
||||
_updateCopyItem: function() {
|
||||
let selection = this._entry.clutter_text.get_selection();
|
||||
this._copyItem.setSensitive(selection && selection != '');
|
||||
this._copyItem.setSensitive(!this._entry.clutter_text.password_char &&
|
||||
selection && selection != '');
|
||||
},
|
||||
|
||||
_updatePasteItem: function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue