Skip to content

[Feature]: Add OnFocusChanged() to Select #145

@Christoba

Description

@Christoba

Feature Description

As suggested in an earlier issue, add an OnFocusChanged() event handler to the Select component that is invoked when the highlighted option is changed.

Problem Statement

Problem 1:
The Select component does not have a way to page/scroll options and when the option list is too large it can overfill a console window.

Problem 2:
The Select component does not have an event handler invoked when the user changes the highlighted option via up/down navigation, which might otherwise provide a way to implement a scrollable window over a large options list.

Proposed Solution

OnFocusChanged() is added to the Select component.

Alternatives Considered

OnHighlightedValueChanged() could be a different name for the same event handler functionality proposed here.

Additional Context

No response

Contribution

  • I'd be willing to contribute this feature

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions