Add Focusing (plugin/plugin store) when changed tab

This commit is contained in:
DB p 2022-11-30 16:22:23 +09:00
parent a77a14ce48
commit 730b353de2
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);
}
}
}