First step in revamping the USB event handling, paving the way for the upcoming SYS_POWER_OFF event


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4951 a1c6a512-1295-4272-9138-f99709370657
diff --git a/apps/menu.c b/apps/menu.c
index 72e4289..5e8a512 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -34,6 +34,7 @@
 #include "screens.h"
 #include "talk.h"
 #include "lang.h"
+#include "misc.h"
 
 #ifdef HAVE_LCD_BITMAP
 #include "icons.h"
@@ -373,12 +374,10 @@
                 exit = true;
                 break;
 
-            case SYS_USB_CONNECTED:
-                usb_screen();
-#ifdef HAVE_LCD_CHARCELLS
-                status_set_param(false);
-#endif
-                return MENU_ATTACHED_USB;
+            default:
+                if(default_event_handler(key) == SYS_USB_CONNECTED)
+                    return MENU_ATTACHED_USB;
+                break;
         }
         
         status_draw(false);