diff --git a/control/frontend/src/routes/ControlView.svelte b/control/frontend/src/routes/ControlView.svelte index accd15a..865cb41 100644 --- a/control/frontend/src/routes/ControlView.svelte +++ b/control/frontend/src/routes/ControlView.svelte @@ -57,6 +57,7 @@ snippet: send_keys_popup, title: 'Tastatur-Eingaben Senden', title_icon: Keyboard, + window_class: 'h-full' }; }; @@ -123,17 +124,8 @@ ); } - async function send_single_key_press(key: string) { - await run_on_all_selected_displays((d) => - send_keyboard_input(d.ip, [{ key, action: 'press' }]) - ); - setTimeout( - async () => - await run_on_all_selected_displays((d) => - send_keyboard_input(d.ip, [{ key, action: 'release' }]) - ), - 10 - ); + async function send_single_key_press(key: string, action: 'press' | 'release') { + await run_on_all_selected_displays((d) => send_keyboard_input(d.ip, [{ key, action }])); } let website_url = $state(''); let website_url_valid = $state(false); @@ -192,14 +184,7 @@ {/snippet} {#snippet send_keys_popup()} -