Use undo grouping in editor command listeners