Merge pull request #219 from Tiktack/Bugs/AddLinkFix

Make HyperLink focusable in Signature Editor
This commit is contained in:
Burak Kaan Köse
2024-06-16 22:22:07 +02:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -241,6 +241,8 @@
<AppBarButton <AppBarButton
x:Name="LinkButton" x:Name="LinkButton"
Width="48" Width="48"
Click="LinkButtonClicked"
FrameworkElement.AllowFocusOnInteraction="True"
Label="Add HyperLink" Label="Add HyperLink"
ToolTipService.ToolTip="Add HyperLink"> ToolTipService.ToolTip="Add HyperLink">
<AppBarButton.Flyout> <AppBarButton.Flyout>

View File

@@ -258,8 +258,9 @@ namespace Wino.Dialogs
private async void LinkButtonClicked(object sender, RoutedEventArgs e) private async void LinkButtonClicked(object sender, RoutedEventArgs e)
{ {
// Get selected text from Quill. // Get selected text from Quill.
HyperlinkTextBox.Text = await TryGetSelectedTextAsync(); HyperlinkTextBox.Text = await TryGetSelectedTextAsync();
HyperlinkFlyout.ShowAt(LinkButton);
} }
private async Task UpdateEditorThemeAsync() private async Task UpdateEditorThemeAsync()