diff --git a/src/intl/en-US.js b/src/intl/en-US.js index 3f7c1b95..24765dd4 100644 --- a/src/intl/en-US.js +++ b/src/intl/en-US.js @@ -153,6 +153,7 @@ export default {
  • f to favorite
  • b to boost
  • r to reply
  • +
  • Escape to close reply
  • i to open images, video, or audio
  • y to show or hide sensitive media
  • m to mention the author
  • diff --git a/src/routes/_components/status/Status.html b/src/routes/_components/status/Status.html index 7cf5c755..c824cded 100644 --- a/src/routes/_components/status/Status.html +++ b/src/routes/_components/status/Status.html @@ -39,7 +39,7 @@ {#if isStatusInOwnThread} {/if} - + {#if replyShown} {/if} @@ -133,6 +133,7 @@ import { composeNewStatusMentioning } from '../../_actions/mention.js' import { createStatusOrNotificationUuid } from '../../_utils/createStatusOrNotificationUuid.js' import { addEmojiTooltips } from '../../_utils/addEmojiTooltips.js' + import { tryToFocusElement } from '../../_utils/tryToFocusElement.js' const INPUT_TAGS = new Set(['a', 'button', 'input', 'textarea', 'label']) const isUserInputElement = node => INPUT_TAGS.has(node.localName) @@ -213,6 +214,10 @@ async mentionAuthor () { const { accountForShortcut } = this.get() await composeNewStatusMentioning(accountForShortcut) + }, + focusArticle () { + const { elementId } = this.get() + tryToFocusElement(elementId, /* scroll */ true) } }, computed: { diff --git a/src/routes/_components/status/StatusToolbar.html b/src/routes/_components/status/StatusToolbar.html index 6dd26490..b2354f7a 100644 --- a/src/routes/_components/status/StatusToolbar.html +++ b/src/routes/_components/status/StatusToolbar.html @@ -42,6 +42,7 @@ {#if enableShortcuts} + {/if}