mi6 / mi6/ic-ui-kit

Add an onIcKeydown event to the searchable select

Open
#2,566 3 comments 0 reactions 0 assignees View on GitHub
select component
Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

## Summary
Add an onIcKeydown event to the searchable select which is emitted when the user presses a key.

## 💬 Description
The text field component has an onIcKeydown event which a developer can use to determine what keys a user is pressing when the text field is focused, e.g. what characters are being inputted. It would be good to have the same event on a searchable select for the same reason.

## 💰 User value
It would make it more closely match the functionality available on the text field. Developers may want to use the information about which keys are being pressed to execute other functionality.

## Additional info
Based on a customer request (for a way to determine what keys have been pressed on the searchable select). `onIcInput` doesn't meet their requirements because they need to capture key codes like Control and Enter.

Contributor guide

Open the contributing guide

Research direction

Locate the searchable select component and the text field implementation that already exposes onIcKeydown. Trace how the searchable select handles keyboard input, then add the corresponding event behavior so consumers can observe pressed keys, including Control and Enter; verify it with the component's existing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.