lizzieyzy icon indicating copy to clipboard operation
lizzieyzy copied to clipboard

Interface bug: Ctrl-V deletes the entire SGF with no warning

Open lightvector opened this issue 1 year ago • 2 comments

I was editing an SGF and I had added a few variations since the last time I saved. I was trying to copy-paste some of the text in one of the SGF comments, but I accidentally pressed Ctrl-V before clicking on the comment text.

Without warning, LizzieYZY deleted the entire SGF I was working on, and I could not find any way to undo it.

It seems like Ctrl-V is intended to be "Paste SGF", to be used after Ctrl-C "Copy SGF". However, I recommend that Ctrl-V should do nothing unless an SGF has already been copied. Otherwise, pressing Ctrl-V by itself has no purpose and only deletes the user's work, causing them to lose their edits and progress.

lightvector avatar Jul 17 '23 14:07 lightvector

Or maybe it could pop up a dialogue box warning the user that the copy and paste is about to replace the entire current game they have?

lightvector avatar Jul 18 '23 15:07 lightvector

I recommend that Ctrl-V should do nothing unless an SGF has already been copied.

Thanks for the advice,I think this way is good enough.

yzyray avatar Jul 19 '23 00:07 yzyray