Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit ee15620

Browse files
committed
Merge original branch by UnityCoder into geo-at-github fork.
2 parents 10ccaf6 + eb83828 commit ee15620

File tree

3 files changed

+83
-60
lines changed

3 files changed

+83
-60
lines changed

UnityLauncher/Form1.Designer.cs

Lines changed: 62 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnityLauncher/Form1.cs

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -767,23 +767,24 @@ private void unityGridView_KeyDown(object sender, KeyEventArgs e)
767767
/// <param name="e"></param>
768768
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
769769
{
770-
switch (e.KeyChar)
770+
//Console.WriteLine((int)e.KeyChar);
771+
switch ((int)e.KeyChar)
771772
{
772-
case '1':
773-
tabControl1.SelectedIndex = 0;
774-
break;
775-
case '2':
776-
tabControl1.SelectedIndex = 1;
777-
break;
778-
case '3':
779-
tabControl1.SelectedIndex = 2;
780-
break;
781-
case '4':
782-
tabControl1.SelectedIndex = 3;
773+
case 27: // ESC - clear search
774+
if (tabControl1.SelectedIndex == 0 && tbSearchBar.Text != "")
775+
{
776+
tbSearchBar.Text = "";
777+
}
783778
break;
784-
default:
785-
if (!tbSearchBar.Focused)
779+
default: // any key
780+
// activate searchbar if not active and we are in tab#1
781+
if (tabControl1.SelectedIndex == 0 && tbSearchBar.Focused == false)
786782
{
783+
// skip tab key on search field
784+
if ((int)e.KeyChar == 9)
785+
{
786+
break;
787+
}
787788
tbSearchBar.Focus();
788789
tbSearchBar.Text += e.KeyChar;
789790
tbSearchBar.Select(tbSearchBar.Text.Length, 0);
@@ -792,6 +793,8 @@ private void Form1_KeyPress(object sender, KeyPressEventArgs e)
792793
}
793794
}
794795

796+
797+
795798
/// <summary>
796799
/// grid keys
797800
/// </summary>
@@ -1069,6 +1072,6 @@ void DisplayUpgradeDialog(string currentVersion, string projectPath, bool launch
10691072
upgradeDialog.Close();
10701073
}
10711074

1072-
1075+
10731076
}
10741077
}

UnityLauncher/Form1.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,9 @@
10331033
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
10341034
<value>374, 17</value>
10351035
</metadata>
1036+
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
1037+
<value>37</value>
1038+
</metadata>
10361039
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
10371040
<value>
10381041
AAABAA0AICAQAAEABADoAgAA1gAAABAQEAABAAQAKAEAAL4DAAAwMAAAAQAIAKgOAADmBAAAICAAAAEA

0 commit comments

Comments
 (0)