mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
Backspace hotkey should override default behaviour (#32826)
This commit is contained in:
committed by
GitHub
parent
e22ec25077
commit
157fba4698
@@ -482,7 +482,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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user