开发者

autosuggest - to activate key board arrow to view the list

开发者 https://www.devze.com 2023-01-20 22:21 出处:网络
http://localapartmentdeals.com/ on the above site there is 开发者_JS百科a location bar and if you type any state (US) it will display an autosuggest list but it will not allow key board strokes to se

http://localapartmentdeals.com/

on the above site there is 开发者_JS百科a location bar and if you type any state (US) it will display an autosuggest list but it will not allow key board strokes to select the list,

eg: no down arrow is working there.

any help please

thanks deve


It doesn't look the arrow keys are detected, you have to implement it.

You should have somewhere in the function suggest a code that handle the arrow keys like:

...
switch(keyCode) {
    case 38: 
        //up arrow, highlight previous entry
        break;
    case 40: //down arrow 
        //up arrow, highlight next entry
        break;
    ...
}
0

精彩评论

暂无评论...
验证码 换一张
取 消