fix: Don't create new document when opening browser window with cmd+n

This commit is contained in:
Tom Moor
2022-04-11 08:08:13 -07:00
parent f399c9d38c
commit 11c009bdbf

View File

@@ -51,7 +51,11 @@ class AuthenticatedLayout extends React.Component<Props> {
}
};
goToNewDocument = () => {
goToNewDocument = (event: KeyboardEvent) => {
if (event.metaKey || event.altKey) {
return;
}
const { activeCollectionId } = this.props.ui;
if (!activeCollectionId) {
return;