Skip to content

Clean up behavior of [_]listen_keys #20

@docelic

Description

@docelic

Screen#listen_keys has two versions:

  1. It sets up general listening for keys and emitting key events
  2. It allows widgets to register themselves as wanting to receive keyboard input

The functionality should be split into two separate parts.

  • One is setting up general key listener
  • And the other is registering widgets to receive keys

Also, widgets should not have to call listen_keys themselves, but if some appropriate instance variable is set to true, then the default widget initialize function should activate listening for keys.

Also, see if widgets have a disabled state, and if yes, while in this state they should not react to keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions