Merge pull request #133 from aaroncampf/master

Combined Redundant Cases
This commit is contained in:
qianlifeng 2014-07-24 12:19:45 +08:00
commit 4ba222f19c

View File

@ -350,7 +350,7 @@ namespace Wox
{
Query q = new Query(tbQuery.Text);
return !UserSettingStorage.Instance.EnableWebSearchSuggestion &&
UserSettingStorage.Instance.WebSearches.Exists(o => o.ActionWord == q.ActionName && o.Enabled);
UserSettingStorage.Instance.WebSearches.Exists(o => o.ActionWord == q.ActionName && o.Enabled);
}
}
@ -521,12 +521,7 @@ namespace Wox
toolTip.IsOpen = false;
e.Handled = true;
break;
case Key.Enter:
AcceptSelect(resultCtrl.GetActiveResult());
e.Handled = true;
break;
case Key.Back:
if (BackKeyDownEvent != null)
{
@ -538,6 +533,7 @@ namespace Wox
}
break;
case Key.Enter:
case Key.Tab:
AcceptSelect(resultCtrl.GetActiveResult());
e.Handled = true;