marijnh/CodeMirror2 — Issue #256: Cmd+Z undo doesn't work on Mac (due to incorrect key binding)
Author: nicknotfound
Created: 2011-11-26 20:54:22+00:00
State: open

`Cmd-Z` is bound to both `undo` and `redo` in the `keyMap.macDefault` hash [line 1772 of codemirror.js](https://github.com/marijnh/CodeMirror2/blob/bafc732d51ec79b9a58f073d6799d1c4634e4148/lib/codemirror.js#L1772).

Adding `Shift-` to the beginning of the `redo` binding fixes the issue:

```
..., "Cmd-Z": "undo", "Shift-Cmd-Z": "redo", ...
```