-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Tree context menu behaves unpredictably while naming new file #4693
Comments
This was originally reported via a blog comment |
Actually, we should just finalize the rename on right click -- similar to #3720. |
I tested putting a listener on the context menu to force the rename to finish. It does work, but the behavior is a bit odd. The context menu appears and the rename is forced to finish, but then the renamed file receives focus and the context menu suddenly disappears. This odd behavior is being caused by issue #1910. If we are going to use a forced rename finish as a solution, issue #1910 needs to be fixed first. |
@JeffryBooher, new pull request submitted. Fixes the merge conflicts. |
Fix issue #4693: Tree context menu behaves unpredictably while naming new file
FBNC @peterflynn |
Sorry, forgot to assign this. @peterflynn please close. |
@lkcampbell Since #1910 is fixed did you want to try doing the "nicer" version of this fix now? I'm still seeing the behavior where the context menu is visible briefly before the text-editing session terminates. |
@peterflynn, yeah I see it also. It might be that editor scroll event firing off again and closing all pop up windows. I will take a look at it this weekend. |
@peterflynn, finally getting back to this issue. I think the original issue filed here 9 months ago is not reproducible anymore. We still have an issue though. Now, when I right click, the rename is still forced, but instead of the context menu appearing, it briefly appears, then disappears. I checked Sprint 32, which was about the time I submitted my original fix. In that Sprint I cannot reproduce the original issue nor the new issue. Since then, we introduced the animated drop down menus and I think this new issue is associated with the animated menus. Looking for input on next steps. I suggest you try to reproduce this issue using your original steps and, if you cannot, we close this issue as fixed. Then, I can file a new issue on the "appear then disappear" menu problem and I can work on fixing that issue. |
In the new file tree/ProjectManager implementation it's working differently. Right click in the edit field will abort the create operation and show the context menu. Now you can select any operation from the context menu, which result in an error for some operations. |
I'll fix this because it shouldn't be misbehaving like that. Should be a quick fix. |
This is fixed in release 44. We're now finalizing renaming if you right click in the input field. Closing. |
Delete & Show in OS apply to the previously selected file -- so you can delete the wrong file by accident.
The other menu items finish creating the file, then do nothing (except for Refresh, which actually does refresh the tree after creating the new file).
To avoid confusion, we should probably just ignore right clicks and block the context menu from appearing while naming/renaming is in progress...
The text was updated successfully, but these errors were encountered: