Class KeyStrokes

  • All Implemented Interfaces:

    
    public final class KeyStrokes
    
                        

    Collect all the keystrokes together in one place. This helps to ensure that there are no duplicates.

    • Constructor Detail

    • Method Detail

      • matches

         static boolean matches(KeyEvent e, KeyStroke k)

        Check if an event matches the KeyStroke definition.

        Parameters:
        e - event
        k - keystroke
        Returns:

        true if event matches the keystroke definition