load file shortcut

This commit is contained in:
vcoppe
2024-04-18 10:52:45 +02:00
parent 685c2bb541
commit 395164033d
4 changed files with 71 additions and 31 deletions

View File

@@ -1,9 +1,12 @@
<script lang="ts">
import Data from '$lib/components/Data.svelte';
import FileList from '$lib/components/FileList.svelte';
import Map from '$lib/components/Map.svelte';
import Menu from '$lib/components/Menu.svelte';
import Toolbar from '$lib/components/Toolbar.svelte';
import LayerControl from '$lib/components/layer-control/LayerControl.svelte';
import { triggerFileInput } from '$lib/components/tools/tools';
</script>
<div class="flex flex-col w-screen h-screen">
@@ -14,5 +17,16 @@
<LayerControl />
<Data />
</div>
<div class="h-12">Test</div>
<div class="h-60 flex flex-row">
<FileList />
</div>
</div>
<svelte:window
on:keydown={(e) => {
if (e.key === 'o' && (e.metaKey || e.ctrlKey)) {
triggerFileInput();
e.preventDefault();
}
}}
/>