diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 60e0837ae..35b67992b 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -191,8 +191,10 @@ const WindowManager = new Lang.Class({ }, addKeybinding: function(name, settings, flags, modes, handler) { - if (global.display.add_keybinding(name, settings, flags, handler)) + let action = global.display.add_keybinding(name, settings, flags, handler); + if (action != Meta.KeyBindingAction.NONE) this.allowKeybinding(name, modes); + return action; }, removeKeybinding: function(name) {