File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
apps/desktop/src/components/editor
packages/ui/src/lib/richText Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 340340 monospaceFont ={$userSettings .diffFont }
341341 tabSize ={$userSettings .tabSize }
342342 enableLigatures ={$userSettings .diffLigatures }
343+ autoFocus ={false }
343344 >
344345 {#snippet plugins ()}
345346 <Formatter bind:this ={formatter } />
Original file line number Diff line number Diff line change 6464 monospaceFont? : string ;
6565 tabSize? : number ;
6666 enableLigatures? : boolean ;
67+ autoFocus? : boolean ;
6768 }
6869
6970 let {
8788 useMonospaceFont,
8889 monospaceFont,
8990 tabSize,
90- enableLigatures
91+ enableLigatures,
92+ autoFocus = true
9193 }: Props = $props ();
9294
9395 /** Standard configuration for our commit message editor. */
321323 <CodeBlockTypeAhead />
322324 <MarkdownShortcutPlugin transformers ={[INLINE_CODE_TRANSFORMER , PARAGRAPH_TRANSFORMER ]} />
323325 {:else }
324- <AutoFocusPlugin />
325326 <AutoLinkPlugin />
326327 <CheckListPlugin />
327328 <CodeActionMenuPlugin anchorElem ={editorDiv } />
333334 <MarkdownShortcutPlugin transformers ={ALL_TRANSFORMERS } />
334335 <RichTextPlugin />
335336 {/if }
337+ {#if autoFocus }
338+ <AutoFocusPlugin />
339+ {/if }
336340 <HistoryPlugin />
337341
338342 {#if plugins }
You can’t perform that action at this time.
0 commit comments