From da14ca65055af94ab0516db1c3f37543de8a4739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Mon, 22 Jul 2024 15:42:51 +0200 Subject: [PATCH] Remove Post comment keyboard shortcut --- src/lib/utils.ts | 15 --------------- src/modals/HotkeysModal.svelte | 10 ---------- 2 files changed, 25 deletions(-) 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 @@