Improved tab behavior
A small fix/improvement to improve the manual entry of items.
Current behavior:
* Start entering text in field that supports auto-complete suggestions, for example, Place
* Suggestion start being displayed and can be selected with arrow keys
* Accepting and entering a suggestion requires hitting enter twice or hitting enter once and then use tab to go to the next field.
* if you hit tab after having selected the suggestion, only the letters manually entered go into the field and the next field is selected. Example: I enter "Pa", select "Paris" from the suggestions, and then hit tab, only "Pa" will be entered into the field.
Expected/improved behavior:
* after having selected a suggestions with arrow key, hitting enter produces the same behavior as now (the assumption being that the suggestion is only part of what I want in the field).
* hitting tab, however, should enter the selected suggestion and not only the letters entered so far.
It's a small thing, but IMHO this is non-standard behavior and often leads to errors in fields when I manually add entries.
Cheers,
Harald.
Current behavior:
* Start entering text in field that supports auto-complete suggestions, for example, Place
* Suggestion start being displayed and can be selected with arrow keys
* Accepting and entering a suggestion requires hitting enter twice or hitting enter once and then use tab to go to the next field.
* if you hit tab after having selected the suggestion, only the letters manually entered go into the field and the next field is selected. Example: I enter "Pa", select "Paris" from the suggestions, and then hit tab, only "Pa" will be entered into the field.
Expected/improved behavior:
* after having selected a suggestions with arrow key, hitting enter produces the same behavior as now (the assumption being that the suggestion is only part of what I want in the field).
* hitting tab, however, should enter the selected suggestion and not only the letters entered so far.
It's a small thing, but IMHO this is non-standard behavior and often leads to errors in fields when I manually add entries.
Cheers,
Harald.
In Google Chrome, tabbing on an item in the address bar dropdown changes focus on the next item in the dropdown menu.
I don't know -- it just seems sensible to me: after having used the arrow key in order to select a suggestion, it just doesn't make sense to me to then jump back to only the letters entered before that. If I didn't want the suggestion I wouldn't have arrow-chosen it in the first place, or at I wouldn't move to the next field with tab but edit it.
But as I said, no huge deal.
That said, I agree with you that it would be nice if tabbing would just select the entry. I also often accidentally create truncated tags.
Like this:
<form>
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">
</form>
I think that's pretty compelling.
Dan - hard to implement?