mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-15 02:50:23 -07:00
18 lines
No EOL
458 B
Kotlin
18 lines
No EOL
458 B
Kotlin
package EscClose
|
|
|
|
import plugin.Plugin
|
|
import plugin.annotations.PluginMeta
|
|
import plugin.api.API
|
|
import java.awt.event.KeyAdapter
|
|
import java.awt.event.KeyEvent
|
|
|
|
class plugin : Plugin() {
|
|
override fun Init() {
|
|
API.AddKeyboardListener(object : KeyAdapter() {
|
|
override fun keyPressed(e: KeyEvent) {
|
|
if (e.keyCode == KeyEvent.VK_ESCAPE)
|
|
API.DispatchCommand("::xface")
|
|
}
|
|
})
|
|
}
|
|
} |