From e12b108ccb3a2dcf4d282bcea9fd4a1d3c94c9ae Mon Sep 17 00:00:00 2001 From: Omar Hussein Date: Fri, 29 Mar 2024 21:35:26 -0400 Subject: [PATCH] directory listing bug fix --- frontend/src/views/Files.vue | 2 +- frontend/src/views/files/Editor.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Files.vue b/frontend/src/views/Files.vue index 9023d89e..2e82fc6b 100644 --- a/frontend/src/views/Files.vue +++ b/frontend/src/views/Files.vue @@ -105,7 +105,7 @@ watch(route, (to, from) => { if (from.path.endsWith("/")) { window.sessionStorage.setItem( "listFrozen", - to.path.endsWith("/").toString() + (!to.path.endsWith("/")).toString() ); } else if (to.path.endsWith("/")) { fileStore.updateRequest(null); diff --git a/frontend/src/views/files/Editor.vue b/frontend/src/views/files/Editor.vue index 7ed35b8b..1654937e 100644 --- a/frontend/src/views/files/Editor.vue +++ b/frontend/src/views/files/Editor.vue @@ -94,7 +94,7 @@ const keyEvent = (event: KeyboardEvent) => { return; } - if (String.fromCharCode(event.which).toLowerCase() !== "s") { + if (event.key !== "s") { return; }