HotkeyListener

Methods
4
Fields
None

Getting one

HotkeyListener.new(…)

Methods

MethodReturnsDescription
setEnabledOnLoginScreen(boolean)()Whether the hotkey also works on the login screen.
hotkeyPressed()()Override: the hotkey went down.
hotkeyReleased()()Override: the hotkey came up.
new(() -> Keybind)HotkeyListenerA listener for the keybind keybind() returns. A subclass with an init of its own passes it on: `X.super.init(self, function() return co…

Returned by

MethodReturnsDescription
HotkeyListenerClass.newHotkeyListenerA listener for the keybind keybind() returns. A subclass with an init of its own passes it on: `X.super.init(self, function() return co…

Method details

new

new: (() -> Keybind) -> HotkeyListener

A listener for the keybind keybind() returns. A subclass with an init of its own passes it on: X.super.init(self, function() return config:hotkey() end).