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