Class ModifierlessKeybind


  • public class ModifierlessKeybind
    extends Keybind
    • Constructor Detail

      • ModifierlessKeybind

        public ModifierlessKeybind​(int keyCode,
                                   int modifiers)
      • ModifierlessKeybind

        public ModifierlessKeybind​(KeyEvent e)
        Constructs a keybind with that matches the passed KeyEvent
    • Method Detail

      • matches

        public boolean matches​(KeyEvent e)
        If the KeyEvent is from a KeyPressed event this returns if the Event is this hotkey being pressed. If the KeyEvent is a KeyReleased event this returns if the event is this hotkey being released
        Overrides:
        matches in class Keybind