diff --git a/src/lib/components/Action.svelte b/src/lib/components/Action.svelte index 646e5141..b0cbf72b 100644 --- a/src/lib/components/Action.svelte +++ b/src/lib/components/Action.svelte @@ -10,23 +10,40 @@ $: info = typeof action === "number" ? KEYMAP_CODES[action] ?? {code: action} : action $: dynamicMapping = info.keyCode && $osLayout[JSON.stringify([info.keyCode])] + + $: tooltip = + (info.title ?? info.id ?? `0x${info.code.toString(16)}`) + + (info.variant === "left" ? " (left)" : info.variant === "right" ? " (right)" : "") {#if dynamicMapping} {dynamicMapping} {:else if display === "keys"} - + {info.icon ?? info.id ?? `0x${info.code.toString(16)}`} {:else if display === "inline-keys"} {#if !info.icon && info.id?.length === 1} - {info.id} + {info.id} {:else} - + {info.icon ?? info.id ?? `0x${info.code.toString(16)}`} {/if} @@ -39,6 +56,13 @@ transition: color 250ms ease; } + .left { + border-left-width: 3px; + } + .right { + border-right-width: 3px; + } + .dynamic { padding: 4px; border-radius: 1px; diff --git a/src/routes/config/settings/+page.svelte b/src/routes/config/settings/+page.svelte index d57d1ba3..aad517a7 100644 --- a/src/routes/config/settings/+page.svelte +++ b/src/routes/config/settings/+page.svelte @@ -1,4 +1,5 @@ @@ -14,7 +15,12 @@ chording, but also takes away the flexibility of character entry.

Spurring also helps new users learn how to chord by eliminating the need to focus on timing.

-

Spurring is toggled by chording both of the 'mirror' keys together.

+

+ Spurring is toggled by chording and together. +