1 /**
2 * To handle tab key down
3 * @param $event object
4 */
5 onTabPress($event) {
6 /*
7 Here you will press tab or shift+tab.
8 In both the cases this.isOptionListVisible will be set to false.
9 <input
10 type="text"
11 (keydown)="onTabPress($event)"
12 />
13 */
14 if ($event.key === 'Tab') {
15 this.isOptionListVisible = false;
16 }
17 }