From 28bd57a19963f6c2edaa627fac0918e20ffa4f0f Mon Sep 17 00:00:00 2001 From: the-leo Date: Tue, 25 Mar 2025 14:21:45 +0300 Subject: [PATCH] Added capture_focus to schema commit_hash:a83938dafd078f79f2f7d2bd3a511b5b4ddfd6c9 --- schema/div-base.json | 6 ++++++ schema/translations.json | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/schema/div-base.json b/schema/div-base.json index 39133a60a..a7474cf55 100644 --- a/schema/div-base.json +++ b/schema/div-base.json @@ -269,6 +269,12 @@ "unsupported_platforms": { "web": "No need for reuse identifier" } + }, + "capture_focus_on_action": { + "type": "boolean", + "default_value": "true", + "$description": "translations.json#/div_base_capture_focus_on_action", + "platforms": [] } } } diff --git a/schema/translations.json b/schema/translations.json index 63786b895..eed583042 100644 --- a/schema/translations.json +++ b/schema/translations.json @@ -2874,5 +2874,9 @@ "div_wrap_content_size_constrained": { "en": "The final size mustn't exceed the parent one. On iOS and in a default browser `false`. On Android always `true`.", "ru": "Итоговый размер не должен превышать родительский. На iOS и в браузере по умолчанию `false`. На Android всегда `true`." + }, + "div_base_capture_focus_on_action": { + "en": "If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • ", + "ru": "Если значение:
  • `true` — при активации экшена элемента фокус будет перенесён на него. Это означает, что фокус режима доступности будет перенесён, а виртуальная клавиатура скрыта, за исключением случаев, когда целевой элемент предполагает её наличие (например, `input`).
  • `false` — при нажатии на элемент фокус останется на текущем сфокусированном элементе.
  • " } }