Package net.runelite.client.config
Class Keybind
- java.lang.Object
-
- net.runelite.client.config.Keybind
-
- Direct Known Subclasses:
ModifierlessKeybind
public class Keybind extends java.lang.ObjectA combination of zero or more modifier keys (Ctrl, alt, shift, meta) and an optional non-modifier key
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)intgetKeyCode()static java.lang.IntegergetModifierForKeyCode(int keyCode)intgetModifiers()inthashCode()booleanmatches(java.awt.event.KeyEvent e)If the KeyEvent is from a KeyPressed event this returns if the Event is this hotkey being pressed.protected booleanmatches(java.awt.event.KeyEvent e, boolean ignoreModifiers)java.lang.StringtoString()
-
-
-
Method Detail
-
matches
public boolean matches(java.awt.event.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
-
matches
protected boolean matches(java.awt.event.KeyEvent e, boolean ignoreModifiers)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getModifierForKeyCode
@Nullable public static java.lang.Integer getModifierForKeyCode(int keyCode)
-
getKeyCode
public int getKeyCode()
-
getModifiers
public int getModifiers()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-