angular keydown
<input (keydown)="onKeydown($event)">
angular keydown
<input (keydown)="onKeydown($event)">
keydown shift tab angular
/**
* To handle tab key down
* @param $event object
*/
onTabPress($event) {
/*
Here you will press tab or shift+tab.
In both the cases this.isOptionListVisible will be set to false.
<input
type="text"
(keydown)="onTabPress($event)"
/>
*/
if ($event.key === 'Tab') {
this.isOptionListVisible = false;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us