Answers for "Angular Quick Tip: Binding Specific Keys to the Keyup and Keydown Events"

0

Angular Quick Tip: Binding Specific Keys to the Keyup and Keydown Events

<input (keydown)="onKeydown($event)">
onKeydown(event) {
  if (event.key === "Enter") {
    console.log(event);
  }
}
Posted by: Guest on April-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language