pl-fe: fix fav hotkey
This commit is contained in:
parent
7824db3698
commit
abe10a352c
1 changed files with 3 additions and 2 deletions
|
@ -132,8 +132,9 @@ const Status: React.FC<IStatus> = (props) => {
|
|||
dispatch(replyCompose(actualStatus, status.reblog_id ? status.account : undefined));
|
||||
};
|
||||
|
||||
const handleHotkeyFavourite = (): void => {
|
||||
toggleFavourite(actualStatus);
|
||||
const handleHotkeyFavourite = (e?: KeyboardEvent): void => {
|
||||
e?.preventDefault();
|
||||
dispatch(toggleFavourite(actualStatus));
|
||||
};
|
||||
|
||||
const handleHotkeyBoost = (e?: KeyboardEvent): void => {
|
||||
|
|
Loading…
Reference in a new issue