Hey, is there a way to detour document changes?
I am trying to catch up all changes to a document before they are applied to it.
I know that it is possible to register a DocumentListener but this way i can't prevent the changes to be applied to the document.
I've allready tried it by setting up a new handler to TypedAction: EditorActionManager.getInstance().getTypedAction().setupHandler()
But the problem with this solution is that changes done by shortcuts, for example [CTRL]+[J], are not registered.
Is there another possibility to get noticed when changes to a document are tried to be done and to prevent them from happening?