mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 11:36:54 +00:00
bindings: Don't overwrite already registered actions
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user