Remove Post comment keyboard shortcut

This commit is contained in:
Rūdolfs Ošiņš
2024-07-23 09:50:33 +02:00
parent 9a50ae0354
commit da14ca6505
2 changed files with 0 additions and 25 deletions
-15
View File
@@ -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);
-10
View File
@@ -1,6 +1,4 @@
<script lang="ts">
import { modifierKey } from "@app/lib/utils";
import Icon from "@app/components/Icon.svelte";
import IconSmall from "@app/components/IconSmall.svelte";
import KeyHint from "@app/components/KeyHint.svelte";
@@ -38,14 +36,6 @@
<KeyHint>⏎</KeyHint>
</div>
<div class="pair">
<span>Post comment</span>
<div class="keys">
<KeyHint>{modifierKey()}</KeyHint> +
<KeyHint>⏎</KeyHint>
</div>
</div>
<div class="pair">
<span>Select multiple lines</span>
<div class="keys">