Should we make it a bit more compact:
```
action not in ['undo', 'redo']
```