mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web: remove legacy global navigation shortcuts
This commit is contained in:
parent
8b801bad50
commit
3e9296ac1e
1 changed files with 1 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
||||||
<script lang="ts">
|
<script>
|
||||||
import "@fontsource/ibm-plex-mono/400.css";
|
import "@fontsource/ibm-plex-mono/400.css";
|
||||||
import "@fontsource/ibm-plex-mono/500.css";
|
import "@fontsource/ibm-plex-mono/500.css";
|
||||||
|
|
||||||
|
@ -7,27 +7,8 @@
|
||||||
|
|
||||||
import Sidebar from "$components/sidebar/Sidebar.svelte";
|
import Sidebar from "$components/sidebar/Sidebar.svelte";
|
||||||
import NotchSticker from "$components/misc/NotchSticker.svelte";
|
import NotchSticker from "$components/misc/NotchSticker.svelte";
|
||||||
import { goto } from "$app/navigation";
|
|
||||||
|
|
||||||
const handleShortcut = (e: KeyboardEvent) => {
|
|
||||||
switch (e.key) {
|
|
||||||
case 'B':
|
|
||||||
goto('/about');
|
|
||||||
break;
|
|
||||||
case 'N':
|
|
||||||
goto('/updates');
|
|
||||||
break;
|
|
||||||
case 'M':
|
|
||||||
goto('/settings');
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:window on:keydown={handleShortcut} />
|
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
{#if device.is.mobile}
|
{#if device.is.mobile}
|
||||||
<meta name="theme-color" content={statusBarColors[$currentTheme]}>
|
<meta name="theme-color" content={statusBarColors[$currentTheme]}>
|
||||||
|
|
Loading…
Reference in a new issue