diff --git a/control/frontend/src/components/ControlView.svelte b/control/frontend/src/components/ControlView.svelte index 3805bc3..e718e63 100644 --- a/control/frontend/src/components/ControlView.svelte +++ b/control/frontend/src/components/ControlView.svelte @@ -12,50 +12,90 @@ TrafficCone } from 'lucide-svelte'; import Button from './Button.svelte'; + import PopUp from './PopUp.svelte'; + import type { PopupContent } from '../ts/types'; + import KeyInput from './KeyInput.svelte'; + + let popup_content: PopupContent = $state({ + open: false, + snippet: null, + title: '', + closable: true + }); + + function popup_close_function() { + popup_content.open = false; + } + + const show_send_keys_popup = () => { + popup_content = { + open: true, + snippet: send_keys_popup, + title: 'Tastatur-Eingaben durchgeben', + title_icon: Keyboard, + closable: true + }; + }; +{#snippet send_keys_popup()} +