diff --git a/src/lib/layout/navigation.svelte b/src/lib/layout/navigation.svelte
index dff034cfb..161300059 100644
--- a/src/lib/layout/navigation.svelte
+++ b/src/lib/layout/navigation.svelte
@@ -8,19 +8,29 @@
$: project = $page.params.project;
$: projectPath = `${base}/console/project-${project}`;
- $: secondSideNav = $page.data.secondSideNav;
+ $: subNavigation = $page.data.subNavigation;
// We need to have this second variable, because we only want narrow
// to change automatically if we change from having a second side nav to
// not having one, not when the second side nav changes to a different value.
- $: hasSecondSideNav = !!secondSideNav;
+ $: hasSubNavigation = !!subNavigation;
let narrow = false;
$: {
- narrow = hasSecondSideNav;
+ narrow = hasSubNavigation;
+ }
+
+ function handleKeyDown(event: KeyboardEvent) {
+ // If Alt + S is pressed
+ if (hasSubNavigation && event.altKey && event.key === 's') {
+ event.preventDefault();
+ narrow = !narrow;
+ }
}
-