Skip to content

Commit

Permalink
Backspace hotkey should override default behaviour (mastodon#32826)
Browse files Browse the repository at this point in the history
  • Loading branch information
c960657 authored Nov 10, 2024
1 parent e22ec25 commit 157fba4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/javascript/mastodon/features/ui/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,9 @@ class UI extends PureComponent {
}
};

handleHotkeyBack = () => {
handleHotkeyBack = e => {
e.preventDefault();

const { history } = this.props;

if (history.location?.state?.fromMastodon) {
Expand Down

0 comments on commit 157fba4

Please sign in to comment.