feat: close editor when click escape key

like in Preview.vue
This commit is contained in:
ShlomoCode 2024-01-19 00:59:35 +02:00
parent 04e03a83b4
commit dcb65a6299

View File

@ -110,6 +110,10 @@ export default {
this.$router.push({ path: uri });
},
keyEvent(event) {
if (event.code === "Escape") {
this.close();
}
if (!event.ctrlKey && !event.metaKey) {
return;
}