endSessionDialog: Don't allow focusing inhibitor items
Those items are not interactive, so it doesn't make sense to be able to set key-focus to them, disallow that. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/935
This commit is contained in:
parent
aae3789142
commit
b3db8fc73f
@ -594,8 +594,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_constructListItemForApp(inhibitor, app) {
|
_constructListItemForApp(inhibitor, app) {
|
||||||
let actor = new St.BoxLayout({ style_class: 'end-session-dialog-app-list-item',
|
let actor = new St.BoxLayout({ style_class: 'end-session-dialog-app-list-item' });
|
||||||
can_focus: true });
|
|
||||||
actor.add(app.create_icon_texture(_ITEM_ICON_SIZE));
|
actor.add(app.create_icon_texture(_ITEM_ICON_SIZE));
|
||||||
|
|
||||||
let textLayout = new St.BoxLayout({ vertical: true,
|
let textLayout = new St.BoxLayout({ vertical: true,
|
||||||
@ -653,8 +652,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
|
|||||||
else
|
else
|
||||||
userLabelText = userName;
|
userLabelText = userName;
|
||||||
|
|
||||||
let actor = new St.BoxLayout({ style_class: 'end-session-dialog-session-list-item',
|
let actor = new St.BoxLayout({ style_class: 'end-session-dialog-session-list-item' });
|
||||||
can_focus: true });
|
|
||||||
actor.add(avatar);
|
actor.add(avatar);
|
||||||
|
|
||||||
let nameLabel = new St.Label({ text: userLabelText,
|
let nameLabel = new St.Label({ text: userLabelText,
|
||||||
|
Loading…
Reference in New Issue
Block a user