pl-fe: fix fav hotkey

This commit is contained in:
Marcin Mikołajczak 2024-09-17 19:30:54 +02:00 committed by GitHub
parent 7824db3698
commit abe10a352c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 => {