Backspace hotkey should override default behaviour (#32826)

This commit is contained in:
Christian Schmidt
2024-11-10 17:16:07 +01:00
committed by GitHub
parent e22ec25077
commit 157fba4698

View File

@@ -482,7 +482,9 @@ class UI extends PureComponent {
}
};
handleHotkeyBack = () => {
handleHotkeyBack = e => {
e.preventDefault();
const { history } = this.props;
if (history.location?.state?.fromMastodon) {