mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 11:20:36 +08:00
Remove Post comment keyboard shortcut
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user