SvA - 2024-05-01

Hi

There's no Undo functionality implemented by the developers of OpenSong. The Undo menu item is added by the framework by default. Text fields (like Title) and editor fields (like Chords/Lyrics) provide a single level undo according forum posts. I guess everybody assumed, this just works.

In my experiments on Windows 8.1, I found even a multi level undo working, as long as you don't leave the text box you're in.

I have no idea, why entering a newline breaks that functionality. Also, sometimes, if you undo once more than there are entries in the undo buffer, select all happens, but not always.

The framework does not offer any control over this behavior, not even any indication whether the control having the focus offers undo functionality or, if we know this from it's type, whether there are entries in the undo buffer.

So, we are not in control. We needed to replace all text fields with custom controls which tried to avoid triggering the standard undo and instead implementing our own.

Don't wait for it.


To anyone on MacOS or Linux: please report, how undo works on your system, both, using Ctrl + Z / Cmd + Z, and how the menu item behaves.