Skip to content

Conversation

@beanbag44
Copy link
Collaborator

@beanbag44 beanbag44 commented Jan 9, 2026

Moves event listeners for keybinds into the setting core to remove / prevent duplicate code and keep consistency.

This keeps the flexibility of regular listeners by providing options for always listening and screen check before invoking the callbacks.

There are callbacks for press, repeat, and release, which can be added when creating the setting

val testSetting by setting("Test Keybind Setting", Bind.EMPTY, alwaysListening = true, screenCheck = false)
    .onPress { info("Pressed!") }
    .onRepeat { info("Repeated!") }
    .onRelease { info("Released!") }

@beanbag44 beanbag44 requested a review from emyfops January 11, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants