Commit 433b174
authored
Fixes #3558
Our combobox uses them to jump to the beginning or end of the option
list but it doesn't make sense to capture these if the combobox isn't
open.
This will allow the home/end keys to function normally for the
Combobox's input field which means, for Windows at least, the caret will
moved to the beginning or end of the input. (macOS doesn't do this
unless you also hold shift to select text).
Before:
https://github.com/user-attachments/assets/8d545613-cd93-4a46-8609-cc66dd960502
After:
https://github.com/user-attachments/assets/426748b5-f66d-4bb9-80ba-be6a9b621618
1 parent 31b3e47 commit 433b174
File tree
2 files changed
+9
-0
lines changed- packages/@headlessui-react
- src/components/combobox
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
737 | 741 | | |
738 | 742 | | |
739 | 743 | | |
| |||
748 | 752 | | |
749 | 753 | | |
750 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
751 | 759 | | |
752 | 760 | | |
753 | 761 | | |
| |||
0 commit comments