Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#5991 closed bug (fixed)

Home and End keys trigger search

Reported by: crussell52 Owned by:
Priority: minor Milestone:
Component: ui.autocomplete Version: 1.8.4
Keywords: Cc:
Blocked by: Blocking:

Description

This behavior can be seen on the remote data demo for autocomplete.

Reproduction:

  1. Type "sp" to get suggestions.
  1. Select item from list
  1. Input is populated with selection, cursor is at end of line.
  1. Press Home key

Result: A new search is executed.

Expected: Moving the cursor within the input should not trigger a new search.

A look at the keydown binding adding during _create() shows that the HOME and END key codes are not in the switch statement. These keydowns fall into the "default" case which triggers a search.

Change History (6)

comment:1 Changed 9 years ago by Scott González

Resolution: worksforme
Status: newclosed

This was fixed back in 1.8.2.

comment:2 Changed 9 years ago by francesco.savoia

Resolution: worksforme
Status: closedreopened

actually it is NOT working.

this is how you can test it is not working: 1) http://jqueryui.com/demos/autocomplete/ 2) Type: act 3) Select: ActionScript 4) press: Home button

and you see it does a new search, opening the div under the input text

comment:3 Changed 9 years ago by Jörn Zaefferer

Resolution: fixed
Status: reopenedclosed

Not fixed in 1.8.2, but fixed on GitHub and will be in 1.8.5, see http://view.jqueryui.com/master/demos/autocomplete/default.html

comment:4 Changed 9 years ago by Jörn Zaefferer

Resolution: fixed
Status: closedreopened

Misunderstood the problem.

comment:5 Changed 9 years ago by Jörn Zaefferer

Resolution: fixed
Status: reopenedclosed

Fixed in dea2f8a7f.

comment:6 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.