From 35a79755f5a123b604b86cb57e1ccb22494f6b5e Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 9 Mar 2026 16:28:19 +0800 Subject: [PATCH] enhance: auto-focus the first input element in popup (#2172) Signed-off-by: leo --- src/Resources/Styles.axaml | 46 +++++++++++++++++++++++++- src/Views/AddRemote.axaml | 3 +- src/Views/AddSubmodule.axaml | 4 +-- src/Views/AddToIgnore.axaml | 4 +-- src/Views/Apply.axaml | 4 +-- src/Views/Archive.axaml | 4 +-- src/Views/Clone.axaml | 4 +-- src/Views/CommitChanges.axaml | 3 +- src/Views/Compare.axaml | 3 +- src/Views/CreateBranch.axaml | 3 +- src/Views/CreateGroup.axaml | 3 +- src/Views/CreateTag.axaml | 3 +- src/Views/DirHistories.axaml | 3 +- src/Views/EditRemote.axaml | 4 +-- src/Views/EditRepositoryNode.axaml | 3 +- src/Views/ExecuteCustomAction.axaml | 3 +- src/Views/ExecuteCustomAction.axaml.cs | 15 --------- src/Views/FileHistories.axaml | 3 +- src/Views/GitFlowStart.axaml | 4 +-- src/Views/Histories.axaml | 3 +- src/Views/InitGitFlow.axaml | 4 +-- src/Views/InteractiveRebase.axaml | 3 +- src/Views/LFSTrackCustomPattern.axaml | 4 +-- src/Views/LauncherPage.axaml | 3 +- src/Views/PopupDataTemplates.cs | 36 ++++++++++++++++++-- src/Views/RenameBranch.axaml | 3 +- src/Views/Repository.axaml | 3 +- src/Views/RevisionCompare.axaml | 3 +- src/Views/RevisionFiles.axaml | 3 +- src/Views/StashChanges.axaml | 1 - src/Views/StashesPage.axaml | 3 +- src/Views/ViewLogs.axaml | 3 +- src/Views/WorkingCopy.axaml | 9 +++-- 33 files changed, 125 insertions(+), 75 deletions(-) diff --git a/src/Resources/Styles.axaml b/src/Resources/Styles.axaml index 4ca2e74f..c6199b43 100644 --- a/src/Resources/Styles.axaml +++ b/src/Resources/Styles.axaml @@ -182,6 +182,14 @@ + + + @@ -1095,6 +1116,12 @@ + + +