keyboard: Treat menu items as actors
This is a leftover of GNOME/gnome-shell!499, since menu items are all actors now, we can just avoid using the actor property when adding an action item. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/700
This commit is contained in:
parent
ba23fd9989
commit
7a4f9a5ff3
@ -193,12 +193,12 @@ var LanguageSelectionPopup = class extends PopupMenu.PopupMenu {
|
|||||||
item = this.addAction(is.displayName, () => {
|
item = this.addAction(is.displayName, () => {
|
||||||
inputSourceManager.activateInputSource(is, true);
|
inputSourceManager.activateInputSource(is, true);
|
||||||
});
|
});
|
||||||
item.actor.can_focus = false;
|
item.can_focus = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
this.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
||||||
item = this.addSettingsAction(_("Region & Language Settings"), 'gnome-region-panel.desktop');
|
item = this.addSettingsAction(_("Region & Language Settings"), 'gnome-region-panel.desktop');
|
||||||
item.actor.can_focus = false;
|
item.can_focus = false;
|
||||||
|
|
||||||
this._capturedEventId = 0;
|
this._capturedEventId = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user