From 870fa0e93cfc548ebc31b638e424b85516dcb72c Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 14 Nov 2020 14:13:38 -0800 Subject: [PATCH] feat: add "i" as shortcut to open media (#1890) fixes #1883 --- src/routes/_components/ShortcutHelpInfo.html | 3 ++- .../_components/status/StatusMediaAttachments.html | 9 +++++++++ tests/spec/025-shortcuts-status.js | 6 ++++-- tests/utils.js | 4 ++++ 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/routes/_components/ShortcutHelpInfo.html b/src/routes/_components/ShortcutHelpInfo.html index ecbd54ed..47532505 100644 --- a/src/routes/_components/ShortcutHelpInfo.html +++ b/src/routes/_components/ShortcutHelpInfo.html @@ -41,11 +41,12 @@
  • f to favorite
  • b to boost
  • r to reply
  • +
  • i to open images, video, or audio
  • +
  • y to show or hide sensitive media
  • m to mention the author
  • p to open the author's profile
  • l to open the card's link in a new tab
  • x to show or hide text behind content warning
  • -
  • y to show or hide sensitive media
  • Media

    diff --git a/src/routes/_components/status/StatusMediaAttachments.html b/src/routes/_components/status/StatusMediaAttachments.html index af9e5cb2..031de1b8 100644 --- a/src/routes/_components/status/StatusMediaAttachments.html +++ b/src/routes/_components/status/StatusMediaAttachments.html @@ -40,6 +40,9 @@ {:else} {/if} +{#if enableShortcuts} + +{/if}