feat: close editor when click escape key (#2947)
parent
2f6c473977
commit
70c826133b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue