Open koppor opened 1 week ago
In parallel to a fix, we should create an MWE showing the error inside (!) JavaFX and report a bug.
I think when previously the field was empty, and you now enter something ctrl + z exception occurs
Now type again and ctrl + z again it works fine
I think when previously the field was empty, and you now enter something ctrl + z exception occurs
Now type again and ctrl + z again it works fine
I think when previously the field was empty, and you now enter something ctrl + z exception occurs
Now type again and ctrl + z again it works fine
The exception also occurs when there is text in the field.
I think, it was introduced with our bindings
As said at https://github.com/JabRef/jabref/pull/11421#issuecomment-2186841645: New reproducer (I started to work on one but did not push 🙈)
Using the menu bar (Edit -> Undo) to undo changes works without any exceptions.
Another issue, which may or may not be related, is that when updating a field using the context menu (Clear, Change Case, Normalize) and using Ctrl+Z to undo this change, nothing happens and no exception occurs. I can only undo this change from the menu bar. However, when using "Protect Selection" from the context menu, this change is undoable but with the exception.
Originally reported at https://github.com/JabRef/jabref/pull/11282#issuecomment-2177466526
An exception is thrown when trying to use Ctrl+Z on any text field in the entry editor.
A work-around is to disable the key combinations Ctrl+Z and Ctrrl+Y for the field:
However, the undo/redo should still work. I went through the code a bit, but
org.jabref.gui.frame.JabRefFrame.UndoRedoEventManager#updateTexts
is "dead" code and I don't know further (yet).