Heimer
Heimer copied to clipboard
Auto focus of newly created node prevents undo
I'm not sure if this is a bug or a "feature".
When you add a new node the text field immediately gets the focus, which prevents undo from working until the user removes the focus by doing something else like opens a menu, for example.
Also, I have no idea how this could be solved. Maybe add a timer that automatically clears the focus if the user won't start typing in some text?
Is it possible to somehow detect if text field is empty and if yes, then undo gets redirected and undoes the node? Useful if you create a children node by mistake and want to undo it.