feat: close editor when click escape key (#2947)

This commit is contained in:
Shlomo
2024-01-30 11:29:37 +02:00
committed by GitHub
parent 2f6c473977
commit 70c826133b

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;
}