1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-23 14:46:52 +09:00

[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;
if (history.location?.state?.fromMastodon) {