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:
parent
4f1242964b
commit
e98891f4e5
@ -532,7 +532,9 @@ class UI extends PureComponent {
|
||||
}
|
||||
};
|
||||
|
||||
handleHotkeyBack = () => {
|
||||
handleHotkeyBack = e => {
|
||||
e.preventDefault();
|
||||
|
||||
const { history } = this.props;
|
||||
|
||||
if (history.location?.state?.fromMastodon) {
|
||||
|
Loading…
Reference in New Issue
Block a user