# Accept \`null\` as a valid action, to disable a keystroke \(\#2678\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/31483db5d8127d17c78dffbaf13799ed672c7261)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 31483db5d8127d17c78dffbaf13799ed672c7261

Requested commit: 31483db5d8127d17c78dffbaf13799ed672c7261

Commit: 31483db5d8127d17c78dffbaf13799ed672c7261

Tree: f339ee6ac81213f80bce7164e277e991f3c80ce7

Author: Kirill Bulatov

Committer: GitHub

## Message

````
Accept `null` as a valid action, to disable a keystroke (#2678)

Deals with https://github.com/zed-industries/community/issues/772
Closes
https://linear.app/zed-industries/issue/Z-1518/allow-keybindings-to-be-removed

Now, configuration like 
```json5
[
    {
        "context": "Editor",
        "bindings": {
            "alt-v": null,
        }
    }
]
```

will make `alt+v` to print `√` instead of moving the caret one page up.

Release Notes:

- Added a way to disable keybindings with `null` value
````

## Parents

- [76af424d79a481d2199a33591126f8420b01aa8d](https://git.cafe/gitcafe/zed/commit/76af424d79a481d2199a33591126f8420b01aa8d?format=markdown)

- [4c51ab8a255910cb30efb2cd819b4bfec13623e0](https://git.cafe/gitcafe/zed/commit/4c51ab8a255910cb30efb2cd819b4bfec13623e0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/31483db5d8127d17c78dffbaf13799ed672c7261?format=markdown)
