adobe/brackets — pull request #2412 by redmunds (2012-12-20 06:35:20+00:00)
Title: Rename on second click fixes

This prevents rename on right click for #2394. This fix in WorkingSetView.js is simpler than it looks at first glance because I also did a minor logic cleanup.

This also implements rename on second click in project tree for #2411.

@peterflynn I also looked at fixing the behavior of double-click in the working set, but couldn't get it working. Double-clicking in the project tree to open a file and also put it in the working set probably only works because the operation for single-clicking is a subset of it (only opens file).

Another problem I noticed is that it's easy to trigger rename mode when re-ordering working set using drag/drop.

We might want to consider disabling rename on second click behavior for now.