From 435a73d05cb8fb291713de28d87c04fc48174d7e Mon Sep 17 00:00:00 2001 From: Adnaan Badr Date: Sat, 27 Jun 2026 04:34:38 +0000 Subject: [PATCH] Document lvt-mod:skip-when-typing modifier attribute Add the new opt-in keyboard guard to the client-attributes reference: a table row plus a prose note explaining that it suppresses a keyboard binding while focus is in an editable element, while bindings without it (e.g. Escape) keep firing during text entry. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_014bnEwkKH6E9q2QQnqj3cWe --- content/reference/client-attributes.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/reference/client-attributes.md b/content/reference/client-attributes.md index 43d59dd..1ddcf52 100644 --- a/content/reference/client-attributes.md +++ b/content/reference/client-attributes.md @@ -1009,6 +1009,9 @@ Complete reference of all `lvt-*` and `data-*` template attributes. | `lvt-key` | Filter keyboard events by key | `lvt-key="Enter"` | | `lvt-mod:debounce` | Debounce delay in milliseconds | `lvt-mod:debounce="300"` | | `lvt-mod:throttle` | Throttle interval in milliseconds | `lvt-mod:throttle="100"` | +| `lvt-mod:skip-when-typing` | Suppress a keyboard binding while focus is in a text field | `
` | + +**`lvt-mod:skip-when-typing`** lets a global keyboard shortcut coexist with text entry. When the attribute is present, the binding does **not** fire if `document.activeElement` is (or is inside) an editable element — a text-like ``, `