File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed
tools/server/webui/src/lib/components/app/chat Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 288288{/ snippet }
289289
290290<AlertDialog bind:open ={showDeleteDialog }>
291- <AlertDialogContent >
291+ <AlertDialogContent
292+ onkeydown ={(e ) => {
293+ if (e .key === ' Enter' ) {
294+ e .preventDefault ();
295+ handleConfirmDelete ();
296+ }
297+ }}
298+ >
292299 <AlertDialogHeader >
293300 <AlertDialogTitle >Delete Message</AlertDialogTitle >
294301 <AlertDialogDescription >
Original file line number Diff line number Diff line change 320320 </AlertDialog .Header >
321321
322322 <div class =" space-y-4" >
323- <!-- Generally unsupported files -->
324323 {#if fileErrorData .generallyUnsupported .length > 0 }
325324 <div class =" space-y-2" >
326325 <h4 class =" text-destructive text-sm font-medium" >Unsupported File Types</h4 >
339338 </div >
340339 {/if }
341340
342- <!-- Modality-restricted files -->
343341 {#if fileErrorData .modalityUnsupported .length > 0 }
344342 <div class =" space-y-2" >
345343 <h4 class =" text-destructive text-sm font-medium" >
361359 </div >
362360 {/if }
363361
364- <!-- Supported file types -->
365362 <div class =" bg-muted/50 rounded-md p-3" >
366363 <h4 class =" mb-2 text-sm font-medium" >This model supports:</h4 >
367364 <p class =" text-muted-foreground text-sm" >
379376 </AlertDialog .Portal >
380377</AlertDialog .Root >
381378
382- <!-- Delete Chat Confirmation Dialog -->
383379<AlertDialog .Root bind:open ={showDeleteDialog }>
384380 <AlertDialog .Portal >
385381 <AlertDialog .Overlay />
Original file line number Diff line number Diff line change 115115 </DropdownMenu .Root >
116116
117117 <AlertDialog .Root bind:open ={showDeleteDialog }>
118- <AlertDialog .Content >
118+ <AlertDialog .Content
119+ onkeydown ={(e ) => {
120+ if (e .key === ' Enter' ) {
121+ e .preventDefault ();
122+ handleConfirmDelete ();
123+ showDeleteDialog = false ;
124+ }
125+ }}
126+ >
119127 <AlertDialog .Header >
120128 <AlertDialog .Title >Delete Conversation</AlertDialog .Title >
121129 <AlertDialog .Description >
You can’t perform that action at this time.
0 commit comments