Skip to content

Subscribing to Keyboard Presses #41

@DandyLyons

Description

@DandyLyons

This library is phenomenal. Thank you for creating it!

I would like to subscribe to keyboard presses so that the user can press a key on the keyboard at any time and we can respond in code (with or without a UI update).

I'm attempting to follow the same strategy that you use in handleInput() here:

private func handleInput() {

It would be nice if the library had this built-in ("I'd be willing to submit a PR.). It would be nice if there was a way for the library user to declare which key presses they would like to subscribe to and to give handlers for each subscription.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions