Skip to content

Commit ab94351

Browse files
committed
Web interface: add keypress to non-interactive elements with on:click
1 parent d0b0031 commit ab94351

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

components/svelte-portal/src/App.svelte

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
on:click={() => {
6161
change_tab(tab);
6262
}}
63+
on:keypress={() => {
64+
change_tab(tab);
65+
}}
6366
>
6467
{tab}
6568
</tab>
@@ -81,7 +84,11 @@
8184
</tab-content>
8285
{:else if current_tab == tabs[3]}
8386
<tab-content>
84-
<UartTerminal bind:this={uart_terminal} on_mount={uart_on_mount} send={uart_send}/>
87+
<UartTerminal
88+
bind:this={uart_terminal}
89+
on_mount={uart_on_mount}
90+
send={uart_send}
91+
/>
8592
</tab-content>
8693
{/if}
8794
</tabs-content>

components/svelte-portal/src/lib/Api.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
let server = "";
33
44
if (development_mode) {
5-
server = "http://172.30.1.83";
5+
server = "http://192.168.0.18";
66
}
77
88
export const api = {

components/svelte-portal/src/lib/Popup.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<popup-wrapper>
1515
<popup-body>
1616
<popup-content>
17-
<popup-close on:click={close}>X</popup-close>
17+
<popup-close on:click={close} on:keypress={close}>X</popup-close>
1818
<popup-border>
1919
<slot />
2020
</popup-border>

0 commit comments

Comments
 (0)