Skip to content

Commit 842d6fb

Browse files
authored
Merge pull request #1589 from onesounds/FixSearchFocusing
Add Focus to plugin/plugin store search box when changed tab
2 parents a77a14c + 730b353 commit 842d6fb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Flow.Launcher/SettingWindow.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,7 @@
994994
TextAlignment="Left" />
995995
<DockPanel DockPanel.Dock="Right">
996996
<TextBox
997+
Loaded="Plugin_GotFocus"
997998
Name="pluginFilterTxb"
998999
Width="150"
9991000
Height="34"
@@ -1428,6 +1429,7 @@
14281429
DockPanel.Dock="Right"
14291430
FontSize="14"
14301431
KeyDown="PluginStoreFilterTxb_OnKeyDown"
1432+
Loaded="PluginStore_GotFocus"
14311433
LostFocus="RefreshPluginStoreEventHandler"
14321434
Text=""
14331435
TextAlignment="Left"

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,5 +562,15 @@ private void StoreListItem_Click(object sender, RoutedEventArgs e)
562562
};
563563

564564
}
565+
566+
private void PluginStore_GotFocus(object sender, RoutedEventArgs e)
567+
{
568+
Keyboard.Focus(pluginStoreFilterTxb);
569+
}
570+
571+
private void Plugin_GotFocus(object sender, RoutedEventArgs e)
572+
{
573+
Keyboard.Focus(pluginFilterTxb);
574+
}
565575
}
566576
}

0 commit comments

Comments
 (0)