| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -767,23 +767,24 @@ private void unityGridView_KeyDown(object sender, KeyEventArgs e) | |||
| 767 | 767 | /// <param name="e"></param> | |
| 768 | 768 | private void Form1_KeyPress(object sender, KeyPressEventArgs e) | |
| 769 | 769 | { | |
| 770 | - switch (e.KeyChar) | ||
| 770 | + //Console.WriteLine((int)e.KeyChar); | ||
| 771 | + switch ((int)e.KeyChar) | ||
| 771 | 772 | { | |
| 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 | + } | ||
| 783 | 778 | 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) | ||
| 786 | 782 | { | |
| 783 | + // skip tab key on search field | ||
| 784 | + if ((int)e.KeyChar == 9) | ||
| 785 | + { | ||
| 786 | + break; | ||
| 787 | + } | ||
| 787 | 788 | tbSearchBar.Focus(); | |
| 788 | 789 | tbSearchBar.Text += e.KeyChar; | |
| 789 | 790 | tbSearchBar.Select(tbSearchBar.Text.Length, 0); | |
@@ -792,6 +793,8 @@ private void Form1_KeyPress(object sender, KeyPressEventArgs e) | |||
| 792 | 793 | } | |
| 793 | 794 | } | |
| 794 | 795 | ||
| 796 | + | ||
| 797 | + | ||
| 795 | 798 | /// <summary> | |
| 796 | 799 | /// grid keys | |
| 797 | 800 | /// </summary> | |
@@ -1069,6 +1072,6 @@ void DisplayUpgradeDialog(string currentVersion, string projectPath, bool launch | |||
| 1069 | 1072 | upgradeDialog.Close(); | |
| 1070 | 1073 | } | |
| 1071 | 1074 | ||
| 1072 | - | ||
| 1075 | + | ||
| 1073 | 1076 | } | |
| 1074 | 1077 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1033,6 +1033,9 @@ | |||
| 1033 | 1033 | <metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |
| 1034 | 1034 | <value>374, 17</value> | |
| 1035 | 1035 | </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> | ||
| 1036 | 1039 | <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
| 1037 | 1040 | <value> | |
| 1038 | 1041 | AAABAA0AICAQAAEABADoAgAA1gAAABAQEAABAAQAKAEAAL4DAAAwMAAAAQAIAKgOAADmBAAAICAAAAEA | |
| Back | FazBrowse Home | New Git URL |
0 commit comments