aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--src/routes/+page.svelte12
2 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2ec894c..8a547ce 100644
--- a/README.md
+++ b/README.md
@@ -63,6 +63,8 @@ worker precaches assets; works offline after first visit.
### Bugs / Polish
+- [x] When I type "sel régénérant", i'm interrupted at the l, it seems to auto submit "sel"
+
### Features
- [ ] Live updates from server
@@ -71,6 +73,8 @@ worker precaches assets; works offline after first visit.
## Deploy
+- [ ] Deploy bare build + node systemctl service
+
```bash
docker build -t home-sveltekit .
docker save home-sveltekit | gzip | pv | ssh ubuntu@feed.kagamino.dev "gunzip | sudo docker load"
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 6611bbc..9900bb3 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -94,6 +94,18 @@
}
}}
oninput={(e) => {
+ if ((e as InputEvent).inputType === 'insertReplacementText') {
+ const val = e.currentTarget.value.trim().toLowerCase();
+ const match = data.catalog.find(
+ (item) => item.name.toLowerCase() === val,
+ );
+ if (match) {
+ name = match.name;
+ handleAdd(false);
+ }
+ }
+ }}
+ onchange={(e) => {
const val = e.currentTarget.value.trim().toLowerCase();
const match = data.catalog.find(
(item) => item.name.toLowerCase() === val,