Heimer icon indicating copy to clipboard operation
Heimer copied to clipboard

Auto focus of newly created node prevents undo

Open juzzlin opened this issue 6 years ago • 1 comments

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?

juzzlin avatar Nov 24 '19 13:11 juzzlin

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.

l3td33r avatar Mar 14 '21 12:03 l3td33r