Home
last modified time | relevance | path

Searched refs:focus (Results 1 – 25 of 366) sorted by relevance

12345678910>>...15

/ohos5.0/docs/en/application-dev/web/
H A Dweb-focus.md3focus management functionality for you to effectively manage the focus and defocus of the **Web** …
17 …bout the focus, focus chain, and focus navigation of the **Web** component, see [Basic Concepts of…
25focus navigation: refers to the behavior of focus shifting between elements on a web page. This be…
35 …s focus to a specific component. For details, see [Controlling the Focus of the Web Component and …
40focus traversal among ArkWeb page elements through the TAB, Shift+TAB, or arrow keys. After the fo…
42 - Click/Touch for focus
47focus traversal occurs when the focus automatically shifts due to system actions or other operatio…
49 Currently, passive focus traversal occurs in the following scenarios:
142 addEventListener("focus", (event) => {});
195 "focus",
[all …]
/ohos5.0/docs/en/application-dev/ui/
H A Darkts-common-events-focus-event.md344 ![focus-1.gif](figures/focus-1.gif)
409 // Set the default focus.
429 - Pressing the **Tab** key triggers focus traversal, and since the third **Button** component is in…
433 The default focus within a container is affected by [focus priority](#focus-group-and-focus-priorit…
462focus: A specific component gains focus, pulling its parent components into focus. Examples includ…
466 1. Initial page focus:
472 2. Subsequent page focus: Focus is gained by the node that last held focus.
543 …Clears the focus and forcibly moves the focus to the root container node of the page, causing othe…
626 ![focus-2](figures/focus-2.gif)
773 ![focus-3](figures/focus-3.gif)
[all …]
H A Darkts-event-overview.md4 …on how they are triggered: touchscreen events, keyboard and mouse events, focus events, and drag e…
13 - [Focus event](arkts-common-events-focus-event.md): an event triggered when a component receives o…
17 …s of collecting hits in the response chain of touchscreen events (excluding key presses and focus).
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-focus.md11 > - Components can actively acquire focus independently of the window's focus state.
13 > - For details about focus development, see [Focus Event](../../../ui/arkts-common-events-focus-e…
115 Implements focus control.
168focus traversal and component focus:<br>1. When the container gains focus as a whole (page level s…
197focus group.<br>**NOTE**<br>Focus groups cannot be nested and should not be configured repeatedly.…
212focus group.<br>**NOTE**<br>Focus groups cannot be nested and should not be configured repeatedly.…
219 …is container component is a focus stop. During focus traversal, the focus stops at the container c…
235 …current focus is on **button2**, pressing the **Tab** key will move the focus to **Column3**. Pres…
386 …**focusOnTouch** sets the focus on the component and removes the focus indicator. Pressing the Tab…
489 Button("small black focus box")
[all …]
H A Dts-universal-focus-event.md3 A focus event is triggered when the page focus moves between components. It can be used to process …
9 …ton and arrow buttons on the external keyboard can be used to trigger the focus event. Sequential …
11 …d), are not focusable by default. Only focusable components can trigger a focus event. To enable a…
17 Triggered when the current component obtains focus.
25 Triggered when the current component loses focus.
43 …ernal keyboard to move the focus between the three buttons. When a button gains focus, its color c…
85 ![focus](figures/focus.png)
/ohos5.0/docs/en/application-dev/media/audio/
H A Daudio-playback-concurrency.md5 …utlines the system's audio focus strategy, detailing how applications can request and release audi…
13focus](#requesting-audio-focus) before starting playback or recording and [release it](#releasing-…
21 - To actively manage audio focus, call the APIs related to [AudioSession](#managing-audio-focus-wit…
31 …ten for audio focus events](#handling-audio-focus-changes). If the audio focus request is rejected…
63 Common audio focus scenarios are as follows:
71focus strategy fails to meet specific scenario requirements, applications can use [AudioSession](#…
77 The system provides two predefined focus modes:
146 The following provides an example of audio focus processing.
172 …// Temporarily losing focus: After other audio streams release focus, the current audio stream wil…
177 …// Permanently losing focus: No audio focus event will be received. The user must manually trigger…
[all …]
H A Dusing-ohaudio-for-session.md3 …em has preset a [default audio focus strategy](audio-playback-concurrency.md#audio-focus-strategy)…
5 … manage the audio focus. Specifically, it can customize an audio focus strategy and determine the …
7 …C APIs related to the audio session. For more information about the audio focus and audio session,…
79 // The application focus is preempted.
116 // The application focus is preempted.
H A Daudio-session-management.md3 …em has preset a [default audio focus strategy](audio-playback-concurrency.md#audio-focus-strategy)…
5 … manage the audio focus. Specifically, it can customize an audio focus strategy and determine the …
7 …S APIs related to the audio session. For more information about the audio focus and audio session,…
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.3.2/
H A Dchangelogs-default-focus.md5 Changed the default focus used when **defaultFocus** is not set.
7 Versions earlier than API version 11: The default focus is given to the first focusable non-contain…
9 API version 11 and later versions: The default focus is given to the root container of the current …
13 …l not obtain focus immediately when the page opens for the first time. Instead, it is the root con…
18 …Versions earlier than API version 11: When the page opens, the text box obtains focus and starts t…
20 …he text box does not obtain focus and therefore the input method is not started. The user needs to…
26 …s on the component only after the user presses the Tab key to enable the component to obtain focus.
32 …get component to become the default focus on the page. In this way, when the page opens for the fi…
41 …rementioned button is touched, the soft keyboard is closed, and the text box component loses focus.
47 Logical behavior that affects the focus:
[all …]
/ohos5.0/docs/zh-cn/application-dev/web/
H A Dweb-focus.md17 Web组件焦点、焦点链和走焦的详情说明请参考[ArkUI焦点基础概念](../ui/arkts-common-events-focus-event.md#基础概念)。
25 - 网页内元素走焦:指焦点在网页内的元素之间转移的行为。该行为遵循W3C标准,开发者可以通过监听focus(在元素获取焦点时触发)和blur(在元素失去焦点时触发)事件来捕捉这些变化。
28 根据走焦的触发方式,可以分为主动走焦和被动走焦,Web组件走焦规范详情参考[ArkUI走焦规范](../ui/arkts-common-events-focus-event.md#走焦规范)。
35 详见[Web组件与ArkUI组件焦点控制](./web-focus.md#web组件与arkui组件焦点控制),可以主动将焦点转移到Web组件上。
57 …ference/apis-arkweb/js-apis-webview.md#requestfocus)再次尝试使web组件获焦。当获焦成功后,应用侧onFocus、w3c focus事件均会上报。
65 - 应用侧通用获焦回调接口[onFocus](../reference/apis-arkui/arkui-ts/ts-universal-focus-event.md#onfocus),获焦事件回调…
66 - 应用侧通用失焦回调接口[onBlur](../reference/apis-arkui/arkui-ts/ts-universal-focus-event.md#onblur),失焦事件回调,绑…
140 - W3C标准事件focus,前端感知网页获焦
142 addEventListener("focus", (event) => {});
195 "focus",
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Drender_picker_value.cpp55 void RenderPickerValue::HandleFocus(const RefPtr<RenderBox>& box, bool focus) in HandleFocus() argument
63 focus_ = focus; in HandleFocus()
64 HandleTextFocus(focus); in HandleFocus()
66 if (focus) { in HandleFocus()
78 void RenderPickerValue::HandleTextFocus(bool focus) in HandleTextFocus() argument
98 option->UpdateTextFocus(focus); in HandleTextFocus()
H A Drender_picker_option.cpp299 void RenderPickerOption::UpdateTextFocus(bool focus) in UpdateTextFocus() argument
301 hasTextFocus_ = focus; in UpdateTextFocus()
304 if (focus) { in UpdateTextFocus()
313 void RenderPickerOption::UpdatePhoneFocus(bool focus) in UpdatePhoneFocus() argument
325 if (focus) { in UpdatePhoneFocus()
344 void RenderPickerOption::UpdateFocus(bool focus) in UpdateFocus() argument
347 UpdateTextFocus(focus); in UpdateFocus()
348 UpdatePhoneFocus(focus); in UpdateFocus()
353 if (focus) { in UpdateFocus()
372 if (focus) { in UpdateFocus()
H A Dpicker_theme.h202 const TextStyle& GetOptionStyle(bool selected, bool focus) const in GetOptionStyle() argument
208 if (focus) { in GetOptionStyle()
214 void SetOptionStyle(bool selected, bool focus, const TextStyle& value) in SetOptionStyle() argument
218 } else if (focus) { in SetOptionStyle()
239 const RefPtr<Decoration>& GetOptionDecoration(bool focus) in GetOptionDecoration() argument
241 if (focus) { in GetOptionDecoration()
247 void SetOptionDecoration(bool focus, const RefPtr<Decoration>& value) in SetOptionDecoration() argument
249 if (focus) { in SetOptionDecoration()
H A Drender_picker_option.h42 void UpdateFocus(bool focus);
43 void UpdatePhoneFocus(bool focus);
44 void UpdateTextFocus(bool focus);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_picker_base.cpp248 … TextStyle& focus, TextStyle&) { focus.SetTextColor(node.ParseColor(val)); } }, in SetOptionStyleOperators()
252 focus.SetFontSize(node.ParseDimension(val)); in SetOptionStyleOperators()
257 TextStyle& focus, TextStyle& disappear) { in SetOptionStyleOperators()
323 focus.SetAllowScale(StringToBool(val)); in SetTextStyleOperators()
339 focus.SetFontSize(fontSize); in SetTextStyleOperators()
340 focus.SetAdaptMaxFontSize(fontSize); in SetTextStyleOperators()
362 focus.SetFontStyle(ConvertStrToFontStyle(val)); in SetTextStyleOperators()
368 focus.SetFontWeight(ConvertStrToFontWeight(val)); in SetTextStyleOperators()
374 focus.SetLetterSpacing(node.ParseDimension(val)); in SetTextStyleOperators()
380 focus.SetLineHeight(node.ParseLineHeight(val)); in SetTextStyleOperators()
[all …]
/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-statestyles.md34 …ton2处于第二个组件。按压时显示为pressed态指定的黑色。使用Tab键走焦,先是Button1获焦并显示为focus态指定的粉色。当Button2获焦的时候,Button2显示为focus态…
148 Button默认normal态显示绿色,第一次按下Tab键让Button获焦显示为focus态的红色,点击事件触发后,再次按下Tab键让Button获焦,focus态变为粉色。
/ohos5.0/docs/en/application-dev/quick-start/
H A Darkts-statestyles.md30focus first and is displayed in the pink style specified for **focus**. When **Button 2** is focus…
142 …s focus and is displayed in the red style specified for **focus**. After a click event occurs and …
/ohos5.0/docs/en/application-dev/application-models/
H A Dpageability-lifecycle.md16 | INACTIVE | The PageAbility is visible but does not gain focus.|
17 | ACTIVE | The PageAbility runs in the foreground and has focus.|
30 | onActive() | Called when the ability is switched to the foreground and gains focus.|
31 | onInactive() | Called when the ability loses focus. An ability loses focus when it is about to en…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/drop_filter/
H A Drender_drop_filter.cpp59 auto focus = box->GetChildren().front(); in UpdateTouchRect() local
60 if (!focus) { in UpdateTouchRect()
63 auto panel = focus->GetChildren().front(); in UpdateTouchRect()
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.2/
H A Dchangelogs-multimedia.md5 For the audio renderer C APIs of API version 10, the focus event callback is changed from **OH_Audi…
35 To define the focus event for an audio renderer, use the function pointer **OH_AudioRenderer_OnInte…
53 For the audio capturer C APIs of API version 10, the focus event callback is changed from **OH_Audi…
83 To define the focus event for an audio capturer, use the function pointer **OH_AudioCapturer_OnInte…
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.31/
H A Dchangelogs-ability.md11 …e is made to prevent malicious applications from restarting themselves when they do not gain focus.
15 …ange. An application should call the **restartApp** API when it is in the focus state. Otherwise, …
27 Call the **restartApp** API when the application is in the focus state.
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/web/
H A Dweb_component.cpp89 auto focus = focusElement_.Upgrade(); in RequestFocus() local
90 if (focus) { in RequestFocus()
91 result = focus->RequestFocusImmediately(); in RequestFocus()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-focus-event.md13 > - 焦点开发参考[焦点开发指南](../../../ui/arkts-common-events-focus-event.md)
93 ![focus](figures/focus.png)
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/
H A Derrorcode-screenlock.md38 This error code is reported when the API is not called by the application in focus.
42 The **unlock()** API is called by an application not in focus.
47 Check whether the application that calls **unlock()** is in focus.
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/shader/
H A Ddepth_of_field_blur.frag55 // transition near to focus
58 // focus
61 // transition focus to far

12345678910>>...15