/[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 03:09:19	23
+++ trunk/EmuXPortal/Form1.cs	2012/04/04 03:12:17	25
@@ -45,13 +45,6 @@
         void platform_ctrl_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
         {
             PlatformControl c = sender as PlatformControl;
-            //PlatformControl d = null;
-            //if (e.KeyCode == Keys.Right)
-            //    d = platform_flow.GetNextControl(c, true) as PlatformControl;
-            //if (e.KeyCode == Keys.Left)
-            //    d = platform_flow.GetNextControl(c, false) as PlatformControl;
-            //logger.WriteLine("Deteted key down: {0} for Platform: {1}", e.KeyCode, d.PlatformName);
-
             if (e.KeyCode == Keys.Enter)
             {
                 // load this platform
@@ -59,7 +52,11 @@
                 CurrentSelectedRom = c.Tag as IEmuConfig;
                 rom_flow.Visible = true;
                 rom_flow.BringToFront();
-            }            
+            }
+            if (e.KeyCode == Keys.Back)
+            {
+                this.Close();
+            }
         }
 
         private void platform_flow_VisibleChanged(object sender, EventArgs e)
@@ -127,13 +124,6 @@
         void game_ctrl_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
         {
             GameControl c = sender as GameControl;
-            //PlatformControl d = null;
-            //if (e.KeyCode == Keys.Right)
-            //    d = platform_flow.GetNextControl(c, true) as PlatformControl;
-            //if (e.KeyCode == Keys.Left)
-            //    d = platform_flow.GetNextControl(c, false) as PlatformControl;
-            //logger.WriteLine("Deteted key down: {0} for Platform: {1}", e.KeyCode, d.PlatformName);
-
             if (e.KeyCode == Keys.Enter)
             {
                 IRomConfig config = c.Tag as IRomConfig;
@@ -148,10 +138,6 @@
                 rom_flow.Visible = false;
                 platform_flow.Visible = true;
             }
-        }
-
-   
-
-    
+        }    
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22