Skip to content

Conversation

@thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Sep 18, 2025

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:

Before.mov

After:

After.mov

@vercel
Copy link

vercel bot commented Sep 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
headlessui-react Ready Ready Preview Comment Sep 18, 2025 7:33pm
headlessui-vue Ready Ready Preview Comment Sep 18, 2025 7:33pm

@thecrypticace thecrypticace changed the title Don’t capture home/end keys if combobox is closed Allow home/end key default behavior inside ComboboxInput when Combobox is closed Sep 18, 2025
@thecrypticace thecrypticace merged commit 433b174 into main Sep 18, 2025
8 checks passed
@thecrypticace thecrypticace deleted the fix/issue-3558 branch September 18, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ComboBox Home and End keys don't work when ComboBox is closed

3 participants