/[EmuXPortal]/trunk/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Form1.cs	2012/04/04 04:13:17	29
+++ trunk/EmuXPortal/Form1.cs	2012/04/04 04:27:01	30
@@ -57,6 +57,21 @@
             {
                 this.Close();
             }
+            if ((e.KeyCode >= Keys.A && e.KeyCode <= Keys.Z) ||
+                (e.KeyCode >= Keys.D0 && e.KeyCode <= Keys.D9))
+            {                
+                char t = (char)e.KeyCode;
+                foreach (Control cc in platform_flow.Controls)
+                {
+                    PlatformControl gc = cc as PlatformControl;
+                    if (gc.PlatformName.ToLower().StartsWith(t.ToString().ToLower()))
+                    {
+                        platform_flow.ScrollControlIntoView(gc);
+                        gc.Select();
+                        break;
+                    }
+                }
+            }
         }
 
         private void platform_flow_VisibleChanged(object sender, EventArgs e)
@@ -138,6 +153,22 @@
                 rom_flow.Visible = false;
                 platform_flow.Visible = true;
             }
+
+            if ( (e.KeyCode >= Keys.A && e.KeyCode <= Keys.Z) || 
+                (e.KeyCode >= Keys.D0 && e.KeyCode <= Keys.D9))
+            {
+                char t = (char)e.KeyCode;
+                foreach (Control cc in rom_flow.Controls)
+                {
+                    GameControl gc = cc as GameControl;
+                    if (gc.GameName.ToLower().StartsWith(t.ToString().ToLower()))
+                    {
+                        rom_flow.ScrollControlIntoView(gc);
+                        gc.Select();                        
+                        break;
+                    }
+                }
+            }
         }    
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22