mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
feat: close editor when click escape key (#2947)
This commit is contained in:
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
Block a user