File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ <h1>RiverSurf</h1>
10
10
< div class ="header__search ">
11
11
< form >
12
12
< input aria-label ="Search jams or riders "
13
- placeholder =" Search jams or riders "
13
+ [ placeholder] =" isMac ? ' Search jams or riders (Ctrl-Opt-i)' : 'Search jams or riders (Alt-i)' "
14
14
[matAutocomplete] ="auto "
15
15
[formControl] ="autocompleteCtrl "
16
+ accessKey ="i "
16
17
class ="header__search__input ">
17
18
< mat-autocomplete class ="header__search__results " #auto ="matAutocomplete ">
18
19
< mat-option *ngFor ="let event of filteredResults.events " [value] ="event.name " (onSelectionChange) ="goToSurfEvent(event) ">
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ export class HeaderComponent {
21
21
autocompleteCtrl = new FormControl ( ) ;
22
22
filteredResults : SearchResults = { events : [ ] , riders : [ ] } ;
23
23
24
+ isMac : boolean = navigator . platform . toLowerCase ( ) . indexOf ( 'mac' ) >= 0 ;
25
+
24
26
constructor (
25
27
private searchService : SearchService ,
26
28
private router : Router ,
You can’t perform that action at this time.
0 commit comments