# Class: UndoStateChangedEvent

## UndoStateChangedEvent()

XMLEditorEvent sent after the user executes the undo or redo command.

## Constructor

#### new UndoStateChangedEvent()

Source:
  - editor/UndoStateChangedEvent.js, line 6

### Classes

UndoStateChangedEvent

### Members

#### commandStates :array

Get the `commandStates` property of this event: an array containing the states of commands `undo` and `redo`.

This array contains pairs:

- `enabled`, a boolean.
- `detail`, a string, the command which can be undone/redone.

##### Type:

- array

Source:
  - editor/UndoStateChangedEvent.js, line 24
See:
  - XMLEditor#getCommandState