feat: Keyboard shortcuts improvements (#2790)
This commit is contained in:
parent
69b0434bb7
commit
d13c4ff8c5
7 changed files with 31 additions and 9 deletions
|
@ -54,7 +54,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
document.addEventListener('keydown', e => {
|
||||
if (this.show && e.keyCode === 27) {
|
||||
if (this.show && e.code === 'Escape') {
|
||||
this.onClose();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue