Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete preview: handle tab and arrow keys, fix lost focus on iframe load #1886

Closed

Conversation

arathunku
Copy link
Contributor

I started working on this before #1885 was open but decided to submit it anyway because it has a slightly different approach plus some additional things.

I'm using mostly keyboard to navigate and wanted to get the UX just right 😄

MR addresses the problem with clicking the preview buttons and keeps the focus inside the input all the time. See the video:

preview.mp4

I'm happy to revert/drop changes from my MR as #1885 progresses because this branch has one more thing... The "Close button" and "Open button" didn't match rest of the UI so I've added eye and eye-open to the bundle, and it feels slightly better.

One more thing that was missing from me was being able to click "Open" without touching arrow keys, with the icon as button instead of preview I think the icon could be visible all the time. With previous buttons I tried to do that but the UI looked very "busy". What do you think?

@arathunku arathunku changed the title Autocomplete preview: handle tab and arrow keys, fix lost focus on iframe load, Autocomplete preview: handle tab and arrow keys, fix lost focus on iframe load Apr 5, 2024
@josevalim
Copy link
Member

I have merged this locally and I will push soon!

@josevalim josevalim closed this Apr 5, 2024
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@arathunku
Copy link
Contributor Author

@josevalim thank you! I'll keep an eye on #1884 for any potential issues/improvement. The Inline preview is freaking awesome! Have a good weekend and see ya at ElixirConf 💚 💙 💜 💛 ❤️

@arathunku arathunku deleted the search-preview-buttons branch April 5, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants