Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/core/src/editor/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export const editorInitialState: EditorState = {
handlers: (store) =>
new DefaultEventHandlers({
store,
isMultiSelectEnabled: (e: MouseEvent) => !!e.metaKey,
isMultiSelectEnabled: (e: MouseEvent) =>
navigator.userAgent.includes('Mac') ? !!e.metaKey : !!e.ctrlKey,
}),
normalizeNodes: () => {},
},
Expand Down
2 changes: 1 addition & 1 deletion site/docs/guides/basic-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ const { currentlySelectedId } = useEditor((state) => {
})
```

> Note: state.events.selected is of type `Set<string>`. This is because in the case of multi-select, it's possible for the user to select multiple Nodes by holding down the `<meta>` key.
> Note: state.events.selected is of type `Set<string>`. This is because in the case of multi-select, it's possible for the user to select multiple Nodes by holding down the `<meta>` key (Mac) or `<ctrl>` key (Windows).

Now, let's replace the placeholder text fields in our Settings Panel with the `settings` Related Component:

Expand Down