Skip to content

Commit 4a73e75

Browse files
authored
🐛 Fix(web): added hotkeys to move grid events to sidebar ctrl+meta+left (#618)
* 🐛 Fix(web): added hotkeys to move grid events to sidebar * 🐛 Fix(web): changed hotkeys order to move grid events to sidebar
1 parent b2d648a commit 4a73e75

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

packages/web/src/views/Forms/EventForm/EventForm.tsx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -224,18 +224,6 @@ export const EventForm: React.FC<FormProps> = ({
224224
endTime,
225225
};
226226

227-
useHotkeys(
228-
"meta+shift+comma",
229-
() => {
230-
if (isDraft) {
231-
return;
232-
}
233-
234-
onConvert?.();
235-
},
236-
hotkeysOptions,
237-
);
238-
239227
useHotkeys(
240228
"delete",
241229
() => {
@@ -283,6 +271,22 @@ export const EventForm: React.FC<FormProps> = ({
283271
},
284272
[isFormOpen, onSubmitForm],
285273
);
274+
275+
useHotkeys(
276+
"ctrl+meta+left",
277+
() => {
278+
if (isDraft) {
279+
return;
280+
}
281+
282+
onConvert?.();
283+
},
284+
{
285+
enabled: isFormOpen,
286+
enableOnFormTags: true,
287+
},
288+
[isFormOpen],
289+
);
286290
return (
287291
<StyledEventForm
288292
{...props}

0 commit comments

Comments
 (0)