From 236bdd80c8862a5357d333583b7e601b4a9270dd Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sat, 11 May 2024 10:50:01 +0200 Subject: [PATCH] auto select goto timecode #1988 --- src/renderer/src/dialogs/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/src/dialogs/index.tsx b/src/renderer/src/dialogs/index.tsx index 9c50b4a3f7..c40451604b 100644 --- a/src/renderer/src/dialogs/index.tsx +++ b/src/renderer/src/dialogs/index.tsx @@ -25,6 +25,9 @@ export async function promptTimeOffset({ initialValue, title, text, inputPlaceho text, input: 'text', inputValue: initialValue || '', + didOpen: () => { + Swal.getInput()!.select(); + }, showCancelButton: true, inputPlaceholder, });