Author Topic: autocomplete arrow key  (Read 1974 times)

benh

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 4
    • View Profile
autocomplete arrow key
« on: July 20, 2017, 09:43:55 pm »
Trying to get autocomplete to work with an array of objects instead of strings.  One problem left, if I try to use the arrow keys to select an item from list, the first item (or last item depending on up or down arrow) is selected and the list closes and the focus moves to the cell in the direction of the arrow key.  If I use the mouse to select, it works fine.

https://jsfiddle.net/Ben_Hampson/8o3d06u0/

How do I get the arrow keys to behave as they do in your demo?

https://paramquery.com/pro/demos/editing_custom

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: autocomplete arrow key
« Reply #1 on: July 20, 2017, 11:03:06 pm »
Add editModel: { keyUpDown: false } to the column.

https://jsfiddle.net/8o3d06u0/16/

benh

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: autocomplete arrow key
« Reply #2 on: July 21, 2017, 01:55:17 am »
Perfect, thank you.