mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix issue#13
This commit is contained in:
parent
c284d5d2f4
commit
f389b1ae93
1 changed files with 4 additions and 8 deletions
|
|
@ -8,6 +8,7 @@ using System.Windows.Forms;
|
|||
using System.Windows.Input;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
using IWshRuntimeLibrary;
|
||||
using Microsoft.Win32;
|
||||
using WinAlfred.Commands;
|
||||
|
|
@ -140,15 +141,9 @@ namespace WinAlfred
|
|||
private void ShowWinAlfred()
|
||||
{
|
||||
Show();
|
||||
//FocusManager.SetFocusedElement(this, tbQuery);
|
||||
tbQuery.Focusable = true;
|
||||
Keyboard.Focus(tbQuery);
|
||||
Activate();
|
||||
tbQuery.Focus();
|
||||
tbQuery.SelectAll();
|
||||
|
||||
if (!tbQuery.IsKeyboardFocused)
|
||||
{
|
||||
MessageBox.Show("didnt focus");
|
||||
}
|
||||
}
|
||||
|
||||
private void SetAutoStart(bool IsAtuoRun)
|
||||
|
|
@ -177,6 +172,7 @@ namespace WinAlfred
|
|||
InitialTray();
|
||||
selectedRecords.LoadSelectedRecords();
|
||||
SetAutoStart(true);
|
||||
ShowWinAlfred();
|
||||
//var engine = new Jurassic.ScriptEngine();
|
||||
//MessageBox.Show(engine.Evaluate("5 * 10 + 2").ToString());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue