-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ctrl+Z (undo) not working any more #11420
Comments
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 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 #11421 (comment): 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. |
JavaFX TextField issue: Asked in #java-german (https://jvm-german.slack.com/archives/C4H2FQKND/p1720297099980919) and created an MWE: Siedlerchr/javafxreproducer#22 |
I checked the source code at https://github.com/openjdk/jfx17u/blob/a205815f99903a1a55c3fbb65a904b20584fb3fc/modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java#L1482 - it should work. However, if I decompile TextInputControll, I get a different source. -- Currently investigating. Update I asked about it at the Update: https://bugs.openjdk.org/browse/JDK-8336065 - our discussion at Siedlerchr/javafxreproducer#22 |
Originally reported at #11282 (comment)
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).The text was updated successfully, but these errors were encountered: