Initial tabbable search results implementation

Refs #371
This commit is contained in:
Will Abson
2016-10-24 09:54:10 +01:00
parent 7a4bb0aec9
commit 964111a3b6
5 changed files with 44 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
</thead>
<tbody>
<tr id="result_row_{{idx}}" *ngFor="let result of results; let idx = index" (click)="onItemClick(result, $event)">
<tr id="result_row_{{idx}}" tabindex="0" *ngFor="let result of results; let idx = index" (click)="onItemClick(result, $event)" (keyup.enter)="onItemClick(result, $event)">
<td class="col-mimetype-icon"><img src="{{getMimeTypeIcon(result)}}" alt="{{getMimeTypeKey(result)|translate}}" /></td>
<td id="result_name_{{idx}}" class="mdl-data-table__cell--non-numeric col-display-name"
attr.data-automation-id=file_{{result.entry.name}} >{{result.entry.name}}</td>