public static void activate ( ) { // capture low-level keyboard events via the keyboard focus manager if ( _dispatcher == null ) { _dispatcher = new KeyEventDispatcher ( ) { public boolean dispatchKeyEvent ( KeyEvent e ) { return DebugChords . dispatchKeyEvent ( e ) ; } } ; KeyboardFocusManager keymgr = KeyboardFocusManager . getCurrentKeyboardFocusManager ( ) ; keymgr . addKeyEventDispatcher ( _dispatcher ) ; } }
Initializes the debug chords services and wires up the key event listener that will be used to invoke the bound code .