Browse Source

Fix media open hotkey (#12546)

master
Jeong Arm 5 years ago
committed by Eugen Rochko
parent
commit
76adde4fe2
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      app/javascript/mastodon/components/status.js
  2. +1
    -1
      app/javascript/mastodon/features/status/index.js

+ 2
- 1
app/javascript/mastodon/components/status.js View File

@ -215,7 +215,8 @@ class Status extends ImmutablePureComponent {
}
handleHotkeyOpenMedia = e => {
const { status, onOpenMedia, onOpenVideo } = this.props;
const { onOpenMedia, onOpenVideo } = this.props;
const status = this._properStatus();
e.preventDefault();

+ 1
- 1
app/javascript/mastodon/features/status/index.js View File

@ -282,7 +282,7 @@ class Status extends ImmutablePureComponent {
}
handleHotkeyOpenMedia = e => {
const { status } = this.props;
const status = this._properStatus();
e.preventDefault();

Loading…
Cancel
Save