isMetaKey -> isModKey

This commit is contained in:
Tom Moor
2021-01-21 07:28:10 -08:00
parent 70626ffff0
commit 6e9c456147
3 changed files with 7 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ import UiStore from "stores/UiStore";
import ErrorBoundary from "components/ErrorBoundary";
import Tooltip from "components/Tooltip";
import embeds from "../embeds";
import { isMetaKey } from "utils/keyboard";
import { isModKey } from "utils/keyboard";
import { uploadFile } from "utils/uploadFile";
import { isInternalUrl } from "utils/urls";
@@ -50,7 +50,7 @@ function Editor(props: PropsWithRef) {
return;
}
if (isInternalUrl(href) && !isMetaKey(event) && !event.shiftKey) {
if (isInternalUrl(href) && !isModKey(event) && !event.shiftKey) {
// relative
let navigateTo = href;