Changed activeWhen by enableWhen property in handlers for Undo/Redo
command in the Edit menu