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

added create_with_enter option that means a user can type a new value an... #48

Open
wants to merge 5 commits into
base: option_adding
Choose a base branch
from

Conversation

dkavanagh
Copy link

...d press enter to get it added. our UX expert insisted on this

Maybe we can even default this to true?

koenpunt and others added 2 commits July 15, 2014 10:42
… and press enter to get it added. our UX expert insisted on this
@slothbear
Copy link

Thanks! My client just asked for create on enter this week. She was talking about keyboard accessibility at the time. I described how she could down-arrow, then enter. She thought just pressing enter was more intuitive.

@slothbear
Copy link

I just notice something in the interface that might support this change. I clicked on the Select field, then typed a couple of characters. The only choice in the list was the one I wanted, so I reflexively pressed Enter, and that item was selected.

It feels like it would be natural to do the same thing for Add (enter when done) as when selecting (enter when done).

@@ -231,6 +232,10 @@ class AbstractChosen
this.results_search()
when 13
evt.preventDefault()
searchText = this.get_search_text()
if @create_option and @create_with_enter and @results_showing and searchTe
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are characters chopped of the end of this line..

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.

4 participants