Merge pull request #1589 from onesounds/FixSearchFocusing

Add Focus to plugin/plugin store search box when changed tab
This commit is contained in:
Jeremy Wu 2022-11-30 19:05:11 +11:00 committed by GitHub
commit 842d6fb0d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -994,6 +994,7 @@
TextAlignment="Left" />
<DockPanel DockPanel.Dock="Right">
<TextBox
Loaded="Plugin_GotFocus"
Name="pluginFilterTxb"
Width="150"
Height="34"
@ -1428,6 +1429,7 @@
DockPanel.Dock="Right"
FontSize="14"
KeyDown="PluginStoreFilterTxb_OnKeyDown"
Loaded="PluginStore_GotFocus"
LostFocus="RefreshPluginStoreEventHandler"
Text=""
TextAlignment="Left"

View file

@ -562,5 +562,15 @@ namespace Flow.Launcher
};
}
private void PluginStore_GotFocus(object sender, RoutedEventArgs e)
{
Keyboard.Focus(pluginStoreFilterTxb);
}
private void Plugin_GotFocus(object sender, RoutedEventArgs e)
{
Keyboard.Focus(pluginFilterTxb);
}
}
}