diff --git a/src/lib/utils.ts b/src/lib/utils.ts index b7682b645..80445b14b 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -196,21 +196,6 @@ export function scrollIntoView(id: string, options?: ScrollIntoViewOptions) { if (lineElement) lineElement.scrollIntoView(options); } -function isMac() { - if ( - (navigator.platform && navigator.platform.includes("Mac")) || - navigator.userAgent.includes("OS X") - ) { - return true; - } else { - return false; - } -} - -export function modifierKey() { - return isMac() ? "⌘" : "ctrl"; -} - // Check whether the given path has a markdown file extension. export function isMarkdownPath(path: string): boolean { return /\.(md|mkd|markdown)$/i.test(path); diff --git a/src/modals/HotkeysModal.svelte b/src/modals/HotkeysModal.svelte index 0ec2d4431..326f955f6 100644 --- a/src/modals/HotkeysModal.svelte +++ b/src/modals/HotkeysModal.svelte @@ -1,6 +1,4 @@