feat: Keyboard shortcuts improvements (#2790)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user