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()} +
+ +
+
+ +
+{/snippet} +
Bildschirme steuern
-
+
-
- -
- - +
-
- Tastatur-Eingaben durchgeben
- -
-
+
diff --git a/control/frontend/src/components/DisplayObject.svelte b/control/frontend/src/components/DisplayObject.svelte index 02470a5..e42224d 100644 --- a/control/frontend/src/components/DisplayObject.svelte +++ b/control/frontend/src/components/DisplayObject.svelte @@ -10,6 +10,7 @@ import OnlineState from './OnlineState.svelte'; import type { Display, MenuOption } from '../ts/types'; import { is_selected, select, selected_display_ids } from '../ts/stores/select'; + import { update_screenshot } from '../ts/stores/displays'; let { display, get_display_menu_options } = $props<{ display: Display; @@ -29,6 +30,7 @@ } else { $pinned_display_id = display.id; } + update_screenshot(display.id); e.stopPropagation(); } diff --git a/control/frontend/src/components/DisplayView.svelte b/control/frontend/src/components/DisplayView.svelte index 64a6b02..b72452d 100644 --- a/control/frontend/src/components/DisplayView.svelte +++ b/control/frontend/src/components/DisplayView.svelte @@ -102,7 +102,7 @@