vinterliste/frontend
Ole-Morten Duesund 4945204b7b fix(tags): Firefox Android — Enter to commit now works
The prior fix (a94a380) handled Chrome Android via the keydown path.
Firefox Android does something different: the soft-keyboard Enter is
intercepted at the input layer as "advance to next form field" — no
keydown fires for us to intercept, so the user's tag was lost and
focus jumped to the next ActivityForm input.

Add an onbeforeinput handler. InputEvent.inputType === 'insertLineBreak'
fires on every modern browser when the user submits via Enter,
even when keydown is suppressed at the IME/keyboard layer.
preventDefault'ing here cancels the focus-advance before it happens.

Idempotent with the existing onKey:
  - Chrome: keydown fires with Enter, our preventDefault cancels the
    line-break, so beforeinput never fires.
  - Firefox Android: no keydown for Enter, beforeinput fires with
    insertLineBreak, we commit there.
  - Android Chrome with IME composition: composing flag short-circuits
    both paths so we don't commit mid-composition.

Comma + button remain as platform-agnostic fallbacks.
2026-05-25 22:22:22 +02:00
..
public Design refresh: warmer palette, softer cards, badge icons, hero treatment 2026-05-25 15:47:39 +02:00
src fix(tags): Firefox Android — Enter to commit now works 2026-05-25 22:22:22 +02:00
index.html Design refresh: warmer palette, softer cards, badge icons, hero treatment 2026-05-25 15:47:39 +02:00
svelte.config.js Scaffold Vinterliste — end-to-end encrypted winter activity list 2026-05-25 12:27:14 +02:00
tsconfig.json Public landing, owner-list links, owner-conditional semi, PWA + mobile 2026-05-25 12:57:59 +02:00
vite.config.ts Scaffold Vinterliste — end-to-end encrypted winter activity list 2026-05-25 12:27:14 +02:00