Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Angular detecting escape key press

@HostListener('document:keydown.escape', ['$event']) onKeydownHandler(event: KeyboardEvent) {
    console.log(event);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Angular #detecting #escape #key #press
ADD COMMENT
Topic
Name
7+6 =