-
Notifications
You must be signed in to change notification settings - Fork 63
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
base: option_adding
Are you sure you want to change the base?
Conversation
… and press enter to get it added. our UX expert insisted on this
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. |
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 |
There was a problem hiding this comment.
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..
8e0f0c0
to
e3f8d9d
Compare
...d press enter to get it added. our UX expert insisted on this
Maybe we can even default this to true?