mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 21:41:51 +02:00
Fix issue#13
This commit is contained in:
@@ -8,6 +8,7 @@ using System.Windows.Forms;
|
|||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using System.Windows.Media.Animation;
|
using System.Windows.Media.Animation;
|
||||||
using System.Windows.Shapes;
|
using System.Windows.Shapes;
|
||||||
|
using System.Windows.Threading;
|
||||||
using IWshRuntimeLibrary;
|
using IWshRuntimeLibrary;
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using WinAlfred.Commands;
|
using WinAlfred.Commands;
|
||||||
@@ -140,15 +141,9 @@ namespace WinAlfred
|
|||||||
private void ShowWinAlfred()
|
private void ShowWinAlfred()
|
||||||
{
|
{
|
||||||
Show();
|
Show();
|
||||||
//FocusManager.SetFocusedElement(this, tbQuery);
|
Activate();
|
||||||
tbQuery.Focusable = true;
|
tbQuery.Focus();
|
||||||
Keyboard.Focus(tbQuery);
|
|
||||||
tbQuery.SelectAll();
|
tbQuery.SelectAll();
|
||||||
|
|
||||||
if (!tbQuery.IsKeyboardFocused)
|
|
||||||
{
|
|
||||||
MessageBox.Show("didnt focus");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetAutoStart(bool IsAtuoRun)
|
private void SetAutoStart(bool IsAtuoRun)
|
||||||
@@ -177,6 +172,7 @@ namespace WinAlfred
|
|||||||
InitialTray();
|
InitialTray();
|
||||||
selectedRecords.LoadSelectedRecords();
|
selectedRecords.LoadSelectedRecords();
|
||||||
SetAutoStart(true);
|
SetAutoStart(true);
|
||||||
|
ShowWinAlfred();
|
||||||
//var engine = new Jurassic.ScriptEngine();
|
//var engine = new Jurassic.ScriptEngine();
|
||||||
//MessageBox.Show(engine.Evaluate("5 * 10 + 2").ToString());
|
//MessageBox.Show(engine.Evaluate("5 * 10 + 2").ToString());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user