While in the Chrome browser I am not able to use the keyboard arrows keys to select an item from a list and make a selection with the Enter key.
Note: This functionality is also needed by an Android build running in an Amazon Fire TV Stick where its remote control is probably sending keyboard up and down keys for selection but are also ignored. I assume in this situation the remote control of this Android device is not able to simulated “touch”
In the browser, some of the keyboard is working, I am able to tab to a search bar and use the Windows hardware keyboard to type and filter down the list for example, however, tabbing never brings Focus to the list items in the save view (ion-list inside ion-content).
How can I setFocus to the whole ion-list, on display, so its list items are selectable with the up and down keys and a selection can be made with the Enter key?
My Lists layout looks like this and I am still hacking at it trying out “#ChsList autofocus…”
<ion-list #ChsList autofocus >
<ion-item *ngFor="let Ch of ChannelsService.Data | ContentType : GlobalService.FilterContentType;" (click)="CatsShow(Ch)"
[class.selected]="Ch.Id === GlobalService.Channel.Id" class="MediaTitle">
<ion-thumbnail item-left>
<img src={{ChannelsService.GetImage(Ch)}} />
</ion-thumbnail>
<p class="TitleArabic">{{Ch.TitleArabic}}</p>{{Ch.TitleAlt}}
</ion-item>
</ion-list>
$ ionic info
cli packages: (C:\Users\AXM\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 6.5.0
local packages:
@ionic/app-scripts : 3.1.5
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 25.2.5
Node : v7.2.0
npm : 4.0.5
OS : Windows 7
Environment Variables:
ANDROID_HOME : C:/Users/AXM/AppData/Local/Android/android-sdk
Misc:
backend : pro
I searched around quite a bit and the only thing closely related I found is
If you can help please share.