popupMenu: Allow setting grabHelper params for PopupMenuManager
Currently all keybindings are disabled while some popup menu is open. However some keybindings may still be useful in some cases, so expose GrabHelper's modal params parameter to allow specifying a keybinding mode for particular menus. https://bugzilla.gnome.org/show_bug.cgi?id=698938
This commit is contained in:
parent
9f00be50d6
commit
db26fb201e
@ -2052,9 +2052,9 @@ const RemoteMenu = new Lang.Class({
|
||||
const PopupMenuManager = new Lang.Class({
|
||||
Name: 'PopupMenuManager',
|
||||
|
||||
_init: function(owner) {
|
||||
_init: function(owner, grabParams) {
|
||||
this._owner = owner;
|
||||
this._grabHelper = new GrabHelper.GrabHelper(owner.actor);
|
||||
this._grabHelper = new GrabHelper.GrabHelper(owner.actor, grabParams);
|
||||
this._menus = [];
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user