diff --git a/extension.js b/extension.js index 1521c6f..ea8f7c0 100644 --- a/extension.js +++ b/extension.js @@ -65,7 +65,11 @@ function init() { register: function(actionName, handler, metaKeyBindingFlags) { let id = registerMutterAction(actionName, handler, - metaKeyBindingFlags) + metaKeyBindingFlags); + // If the id is NONE the action is already registered + if (id === Meta.KeyBindingAction.NONE) + return null; + let action = { id: id , name: actionName , handler: handler