Skip to content

Commit 835370a

Browse files
Set text to current hotkey when lost focus
1 parent 28c5031 commit 835370a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher/HotkeyControl.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public Task SetHotkeyAsync(string keyStr, bool triggerValidate = true)
103103

104104
private void tbHotkey_LostFocus(object sender, RoutedEventArgs e)
105105
{
106-
106+
tbHotkey.Text = CurrentHotkey.ToString();
107+
tbHotkey.Select(tbHotkey.Text.Length, 0);
107108
}
108109

109110
private void tbHotkey_GotFocus(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)