OSDN Git Service

AppliStation-GUI,Ctrl+Eで検索テキストボックスにフォーカスがいくようにした。
authorttp <ttp@users.sourceforge.jp>
Sun, 7 Jun 2009 05:08:59 +0000 (14:08 +0900)
committerttp <ttp@users.sourceforge.jp>
Sun, 7 Jun 2009 05:08:59 +0000 (14:08 +0900)
AppliStation/PackageListViewForm.cs

index 9327944..872b136 100644 (file)
@@ -679,6 +679,17 @@ namespace AppliStation
                        }\r
                }\r
                \r
+               protected override bool ProcessCmdKey(ref Message msg, Keys keyData)\r
+               {\r
+                       if ((int)keyData == (int)Keys.Control + (int)Keys.E) {\r
+                               searchTextBox.SelectAll();\r
+                               searchTextBox.Focus();\r
+                               return true;\r
+                       }\r
+                       \r
+                       return base.ProcessCmdKey(ref msg, keyData);\r
+               }\r
+               \r
                public void UpdatePackageList()\r
                {\r
                        pkgListsMan.LoadPackageLists();\r