Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Remove Post comment keyboard shortcut
Merged rudolfs opened 1 year ago

This isn’t relevant in a read-only web interface anymore.

check check-visual check-unit-test check-http-client-unit-test check-radicle-httpd check-e2e check-build check-http πŸ‘‰ Preview πŸ‘‰ Workflow runs πŸ‘‰ Branch on GitHub

2 files changed +0 -25 9a50ae03 β†’ da14ca65
modified 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);
modified src/modals/HotkeysModal.svelte
@@ -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";
@@ -39,14 +37,6 @@
      </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">
          <KeyHint>Shift</KeyHint>