JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.49k stars 4.12k forks source link

Home/end keys don't work in search box #5759

Open madelson opened 10 months ago

madelson commented 10 months ago

I would expect these to move the cursor to the start/end of the textbox just like in a native text area. They should be able to drag the highlight as well when shift is held like the arrow keys do

This behavior reproduces for me on Windows+Chrome on the React Select demo page: https://react-select.com/home

Apologies if this should have been filed as a feature request.

IbraheemHaseeb7 commented 10 months ago

I can confirm that this issue exists.

Let me see if I can do anything to fix this and just submit a pull request

atilagulers commented 10 months ago

is this still active?

madelson commented 10 months ago

@atilagulers not fixed afaik

IbraheemHaseeb7 commented 10 months ago

@madelson After looking into the docs I suspect that the issue is caused where the events on Key Press being listened to. Perhaps we need to add another configuration in the switch case statement that when you press the home key it should go to start and when you press the end key it should go to the end.