0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
Sets the label or icon on the Enter key of a touch keyboard (Next, Done, Go, Search, Send). It only changes the label; what Enter does is still up to the form or your script.
Overview
enterkeyhint chooses what the Enter key on a virtual keyboard says: "Next" between fields, "Search" in a search box, "Send" in a chat box. It is a label only. Pressing Enter still does what it always does: submit a one-line form, insert a line break in a textarea, or whatever your script handles.
In a textarea Enter inserts a line break, so send is only honest if your script intercepts Enter. Skip the key while an input method editor (IME) is composing text, or Chinese, Japanese and Korean users send half-typed messages when they press Enter to confirm a character.
Enter sends, Shift+Enter adds a line, IME-safe
const box = document.querySelector('#message');box.addEventListener('keydown', (event) => {if (event.key !== 'Enter' || event.shiftKey) return;// Enter that confirms an IME composition must not send.if (event.isComposing || event.keyCode === 229) return; event.preventDefault(); box.form.requestSubmit();});
The keyCode === 229 check covers browsers that fire the confirming keydown just after composition has ended. In VB you don't need this script: <chat-input> does exactly this.
In Vanilla Breeze
VB has no styling for enterkeyhint; it only affects the virtual keyboard.
<chat-input> sends on Enter, adds a line on Shift+Enter, and ignores Enter during IME composition (src/web-components/chat-input/logic.js).
In a data-wizard form, Enter in a text field on any step but the last moves to the next step instead of submitting, so enterkeyhint="next" matches what happens there; use done on the last step.
Accessibility
A label that matches the action helps everyone predict what Enter will do, and is especially useful to people who rely on the keyboard's cues rather than scanning the page for a button.
Never let the label lie. "Send" on a textarea that inserts a newline, or "Next" on the last field, confuses more than the default would.
Keep a visible submit button. Enter is a shortcut, not the only way to submit.
Browser support
Baseline 2021: Chrome 77, Firefox 94, Safari 13.1. Only virtual keyboards show the label; on a desktop with a physical keyboard nothing changes, and Android keyboard apps may ignore it.
Gotchas
It changes no behaviour. enterkeyhint="next" does not move focus; browsers that offer next/previous do that themselves, or you handle Enter in script.
Implicit submission still applies: Enter in a text input submits the form if it has a submit button or only one single-line text field.
Avoid non-enter hints on multi-line fields unless you intercept Enter.