public static void registerHook ( int modifierMask , int keyCode , Hook hook ) { // store the hooks mapped by key code ArrayList < Tuple < Integer , Hook > > list = _bindings . get ( keyCode ) ; if ( list == null ) { list = new ArrayList < Tuple < Integer , Hook > > ( ) ; _bindings . put ( keyCode , list ) ; } // append the hook and modifier mask to the list list . add ( new Tuple < Integer , Hook > ( modifierMask , hook ) ) ; }
Registers the supplied debug hook to be invoked when the specified key combination is depressed .