Cancel selection by clicking background, and hide action panel #833
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As mentioned in the commit message, I no longer think the first commit here is a good idea.
But it does at least give us an easy way to cancel a node selection by clicking the background, enabling the disappearing-action-panel behaviour in the second commit*, so I've pushed this branch to allow us to get a feel for that. Although as it happens, I'm not sure that's such a good idea now either. We proposed it during last week's in-person meeting (along with a major redesign of the sidebar), but as @dhess anticipated in yesterday's wrap-up, it actually ends of feeling a bit weird, at least when implemented as naively as this, particularly because a newly-selected node can disappear behind the panel. Further UX exploration is needed.
* Strictly speaking, it's kind-of unrelated, but without this change the panel would only not be present when a new program is created, or when the selected node is deleted.