Changed kernel magic combo prefix to Ctrl-Alt-...
authorJohn Hodge <[email protected]>
Sat, 26 Sep 2009 15:06:57 +0000 (23:06 +0800)
committerJohn Hodge <[email protected]>
Sat, 26 Sep 2009 15:06:57 +0000 (23:06 +0800)
Kernel/drv/kb.c

index fc07897..eeb1f99 100644 (file)
@@ -141,7 +141,18 @@ void KB_IRQHandler()
 
        // Ignore Non-Printable Characters
        if(ch == 0 || ch & 0x80)                return;
-               
+       
+       
+       // --- Check for Kernel Magic Combos
+       if(gbaKB_States[KEY_LCTRL] && gbaKB_States[KEY_LALT])
+       {
+               switch(ch)
+               {
+               case 'd':       __asm__ __volatile__ ("xchg %bx, %bx"); break;
+               case 'p':       Threads_Dump(); break;
+               }
+       }
+       
        // Is shift pressed
        if(gbKB_ShiftState ^ gbKB_CapsState)
        {
@@ -175,16 +186,6 @@ void KB_IRQHandler()
                }
        }
        
-       // --- Check for Kernel Magic Combos
-       if(gbaKB_States[KEY_LSHIFT] && gbaKB_States[KEY_RSHIFT])
-       {
-               switch(ch)
-               {
-               case 'D':       __asm__ __volatile__ ("xchg %bx, %bx"); break;
-               case 'P':       Threads_Dump(); break;
-               }
-       }
-       
        if(gKB_Callback)        gKB_Callback(ch);
 }
 

UCC git Repository :: git.ucc.asn.au