feat: Keyboard shortcuts improvements (#2790)

This commit is contained in:
Sivin Varghese
2021-08-26 15:55:58 +05:30
committed by GitHub
parent 69b0434bb7
commit d13c4ff8c5
7 changed files with 31 additions and 9 deletions

View File

@@ -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();
}
});