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

This commit is contained in:
Shlomo authored and GitHub committed 2024-01-30 10:29:37 +01:00
1 parent 2f6c473977
commit 70c826133b
1 file changed
+4
+4
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;
}