Answers for "shift + c event code in angular"

4

angular keydown

<input (keydown)="onKeydown($event)">
Posted by: Guest on October-26-2020
0

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;
    }
  }
Posted by: Guest on August-19-2020

Browse Popular Code Answers by Language