File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed
packages/web/src/views/Forms/EventForm Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments