fix program plugin doesn't work in XP issue.

This commit is contained in:
qianlifeng
2014-01-06 21:25:24 +08:00
parent 3901422a54
commit 97b5526cc1
13 changed files with 291 additions and 108 deletions

View File

@@ -91,8 +91,14 @@ namespace WinAlfred
{
Show();
//FocusManager.SetFocusedElement(this, tbQuery);
tbQuery.Focusable = true;
Keyboard.Focus(tbQuery);
tbQuery.SelectAll();
if (!tbQuery.IsKeyboardFocused)
{
MessageBox.Show("didnt focus");
}
}
private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)