Skip to content

Conversation

@helbling
Copy link

Do not select anything when TAB is pressed. This is really annoying if your mouse pointer happens to be where the suggestions pop up and some arbitrary element is focused just because it happened to be where your mouse pointer was.

See also:
http://stackoverflow.com/questions/9624773/jquery-autocomplete-mouse-below-text-box-a-causes-selection-after-menu-is-show
http://stackoverflow.com/questions/9672918/jquery-autocomplete-when-mouse-is-below-text-input-your-text-is-replaced-as-y

This commit only fixes the TAB Key, but the basic problem is the same.

Do not select anything when TAB is pressed. This is really annoying if your mouse pointer happens to be where the suggestions pop up and some arbitrary element is focused just because it happened to be where your mouse pointer was.
@scottgonzalez
Copy link
Member

This needs more discussion. The Awesome Bar treats TAB the same as DOWN.

@scottgonzalez
Copy link
Member

Actually, Firefox and Chrome both have the exact same behavior for native autocomplete (I didn't test any other browsers). I don't see a reason to change this.

@helbling
Copy link
Author

Well, just because the behaviour is broken there, doesn't mean that jquery-ui shouldn't do it right.

@scottgonzalez
Copy link
Member

There needs to be a solid case made that jQuery UI is doing it wrong in the first place. I'm sure the biggest annoyance for this comes from a bug that has already been fixed where the mouse would highlight a term when the menu is shown even if the mouse hasn't been moved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants