enable.tools.pyface.undo_tool module

UndoTool

Tool that triggers undo or redo when keys are pressed.

class enable.tools.pyface.undo_tool.UndoTool(component=None, **traits)[source]

Bases: enable.tools.pyface.command_tool.BaseUndoTool

Tool that triggers undo or redo when keys are pressed

normal_key_pressed(event)[source]

Respond to key presses which match either the undo or redo keys

redo_keys = List(Instance(KeySpec), [ctrl_shift_z])

the key sequences which trigger redo actions

undo_keys = List(Instance(KeySpec), [ctrl_z])

the key sequences which trigger undo actions