shell-wm: Remove takeover_keybinding()
Introspection support is now good enough to set a custom keybinding handler directly from JS. https://bugzilla.gnome.org/show_bug.cgi?id=663584
This commit is contained in:
@ -132,15 +132,11 @@ function _initUserSession() {
|
||||
ExtensionSystem.init();
|
||||
ExtensionSystem.loadExtensions();
|
||||
|
||||
let shellwm = global.window_manager;
|
||||
|
||||
shellwm.takeover_keybinding('panel-run-dialog');
|
||||
shellwm.connect('keybinding::panel-run-dialog', function () {
|
||||
Meta.keybindings_set_custom_handler('panel-run-dialog', function() {
|
||||
getRunDialog().open();
|
||||
});
|
||||
|
||||
shellwm.takeover_keybinding('panel-main-menu');
|
||||
shellwm.connect('keybinding::panel-main-menu', function () {
|
||||
Meta.keybindings_set_custom_handler('panel-main-menu', function () {
|
||||
overview.toggle();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user