mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-24 22:45:27 +00:00
Fix media open hotkey (#12546)
This commit is contained in:
parent
04582e3c3e
commit
76adde4fe2
2 changed files with 3 additions and 2 deletions
|
@ -215,7 +215,8 @@ class Status extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleHotkeyOpenMedia = e => {
|
handleHotkeyOpenMedia = e => {
|
||||||
const { status, onOpenMedia, onOpenVideo } = this.props;
|
const { onOpenMedia, onOpenVideo } = this.props;
|
||||||
|
const status = this._properStatus();
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
|
|
@ -282,7 +282,7 @@ class Status extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleHotkeyOpenMedia = e => {
|
handleHotkeyOpenMedia = e => {
|
||||||
const { status } = this.props;
|
const status = this._properStatus();
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue