[Glitch] Backspace hotkey should override default behaviour

Port 157fba4698 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Christian Schmidt 2024-11-10 17:16:07 +01:00 committed by Claire
parent 4f1242964b
commit e98891f4e5

View file

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