mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 17:51:36 +01: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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue