Yesterday I discovered a small bug by accident. Steps to reproduce:
Choose any file or directory and set the cursor on it
Use Shift+F6 to start the rename operation. If your file has an extension, make sure the whole file name is selected.
Type a single space character
Abort the operation by ESC => Windows error sound is played.
Expected: TC shouldn't play anything when the rename operation is aborted. I checked this on TC 8.52a and TC9 (both 32 and 64 bit) on XP and Win7 x64, it happens on all of them. I haven't found any other characters that trigger the sound so far, even two space characters don't.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
2ghisler(Author)
No, it doesn't work that way. At first, I had the same thought, but I tried with invalid characters as well like backslash, slash, colon and so on and TC never played the error sound. And, why is it played only when one space is used but not when there's two or more of them? It's invalid in either case.
And, as I said: TC shouldn't play anything when the operation is aborted, it's superfluous and annoying.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Mmh, that explains why the sound is played on a name with a single space, but I can't reproduce it with an empty name - which your code suggests if I understand it correctly.
But I still don't get why the sound is played in the first place when the operation is canceled. That doesn't make any sense, does it? Software should only call for the user's attention when necessary, if the user made some mistake. In this case, the user already knows, so (s)he didn't confirm the new name.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64