Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kof committed Feb 11, 2025
1 parent e771fad commit 8794cf6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@ export const NavigatorTree = () => {
const selectInstanceAndClearSelection = (
instanceSelector: undefined | Instance["id"][]
) => {
// If text is selected, it needs to be unselected before selecting the instance.
// Otherwise user will cmd+c the text instead of copying the instance.
window.getSelection()?.removeAllRanges();
selectInstance(instanceSelector);
};
Expand Down

0 comments on commit 8794cf6

Please sign in to comment.