📜  角度检测转义键 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:28.659000             🧑  作者: Mango

代码示例2
@HostListener('document:keydown.escape', ['$event']) onKeydownHandler(event: KeyboardEvent) {
    console.log(event);
}