Package net.runelite.client.util
Class HotkeyListener
- java.lang.Object
-
- net.runelite.client.util.HotkeyListener
-
- All Implemented Interfaces:
java.awt.event.KeyListener,java.util.EventListener,KeyListener
public abstract class HotkeyListener extends java.lang.Object implements KeyListener
-
-
Constructor Summary
Constructors Constructor Description HotkeyListener(java.util.function.Supplier<Keybind> keybind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfocusLost()voidhotkeyPressed()voidhotkeyReleased()booleanisEnabledOnLoginScreen()voidkeyPressed(java.awt.event.KeyEvent e)voidkeyReleased(java.awt.event.KeyEvent e)voidkeyTyped(java.awt.event.KeyEvent e)voidsetEnabledOnLoginScreen(boolean enabledOnLoginScreen)
-
-
-
Constructor Detail
-
HotkeyListener
public HotkeyListener(java.util.function.Supplier<Keybind> keybind)
-
-
Method Detail
-
isEnabledOnLoginScreen
public boolean isEnabledOnLoginScreen()
- Specified by:
isEnabledOnLoginScreenin interfaceKeyListener
-
focusLost
public void focusLost()
- Specified by:
focusLostin interfaceKeyListener
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTypedin interfacejava.awt.event.KeyListener
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressedin interfacejava.awt.event.KeyListener
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener
-
hotkeyPressed
public void hotkeyPressed()
-
hotkeyReleased
public void hotkeyReleased()
-
setEnabledOnLoginScreen
public void setEnabledOnLoginScreen(boolean enabledOnLoginScreen)
-
-