1# Window Subsystem Changelog
2
3## cl.window.1 Input_KeyEvent Injection Changed in the Callback Event Registered by OH_NativeWindowManager_RegisterKeyEventFilter
4
5**Access Level**
6
7Public API
8
9**Reason for Change**
10
11The injected value does not match the enumerated value when the [Input_KeyEventAction](../../../application-dev/reference/apis-input-kit/input.md#input_keyeventaction) field of the [Input_KeyEvent](../../../application-dev/reference/apis-input-kit/input.md) struct is injected into the callback function. Before the change, the values 1, 2, and 3 of **Input_KeyEventAction** correspond to KEY_ACTION_CANCEL, KEY_ACTION_DOWN, and KEY_ACTION_UP, respectively, whereas the enumerated values are 0 (KEY_ACTION_CANCEL), 1 (KEY_ACTION_DOWN), and 2 (KEY_ACTION_UP).
12
13**Change Impact**
14
15This change is a non-compatible change.<br>
16Before the change, the value of **Input_KeyEventAction** in **Input_KeyEvent** is 1, 2, or 3, which does not match the enumerated values.<br>
17After the change, the value of **Input_KeyEventAction** in **Input_KeyEvent** is 0, 1, or 2, which matches the enumerated values.<br>
18
19**Start API Level**
20
21API version 12
22
23**Change Since**
24
25OpenHarmony SDK 5.0.0.38
26
27**Key API/Component Changes**
28
29Injection implementation of the callback function **OH_NativeWindowManager_KeyEventFilter** registered by calling **OH_NativeWindowManager_RegisterKeyEventFilter**
30
31**Adaptation Guide**
32
33Change the code to the corresponding enumerated values of **Input_KeyEventAction**.
34
35## cl.window.2 Startup Behavior of startAbility and openLink Is Restricted on a Lock Screen
36
37**Access Level**
38
39Public API
40
41**Reason for Change**
42
43Added restrictions on the behavior of randomly starting applications when the screen is locked.
44
45**Change Impact**
46
47This change is a non-compatible change.
48
49Before the change: When the screen is locked, the **startAbility** and **openLink** APIs can be called to start an application and keep the application window in the foreground.
50
51After the change: When **startAbility** or **openLink** is called to start an application on a lock screen, the application window is blocked by the window manager when it attempts to enter the foreground state, and the window and application are closed.
52
53**Start API Level**
54
556
56
57**Change Since**
58
59OpenHarmony SDK 5.0.0.71
60
61**Key API/Component Changes**
62
63startAbility/openLink
64
65The following interfaces are involved:
66|UIAbilityContext|ServiceExtensionContext|UIExtensionContext|
67|---|---|---|
68|startAbility(want: Want, callback: AsyncCallback&lt;void&gt;)|startAbility(want: Want, callback: AsyncCallback&lt;void&gt;)|startAbility(want: Want, callback: AsyncCallback&lt;void&gt;)|
69|startAbility(want: Want, options: StartOptions, callback: AsyncCallback&lt;void&gt;)|startAbility(want: Want, options: StartOptions, callback: AsyncCallback&lt;void&gt;)|startAbility(want: Want, options: StartOptions, callback: AsyncCallback&lt;void&gt;)|
70|startAbility(want: Want, options?: StartOptions)|startAbility(want: Want, options?: StartOptions)|startAbility(want: Want, options?: StartOptions)|
71|startAbilityForResult(want: Want, callback: AsyncCallback&lt;AbilityResult&gt;)|startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback&lt;void&gt;)|startAbilityForResult(want: Want, callback: AsyncCallback&lt;AbilityResult&gt;)|
72|startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback&lt;AbilityResult&gt;)|startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback&lt;void&gt;)|startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback&lt;AbilityResult&gt;)|
73|startAbilityForResult(want: Want, options?: StartOptions)|startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions)|startAbilityForResult(want: Want, options?: StartOptions)|
74|startAbilityByCall(want: Want)|startAbilityAsCaller(want: Want, callback: AsyncCallback&lt;void&gt;)|openLink(link:string, options?: OpenLinkOptions, callback?: AsyncCallback&lt;AbilityResult&gt;)|
75|startAbilityAsCaller(want: Want, options?: StartOptions)|startAbilityAsCaller(want: Want, options: StartOptions, callback: AsyncCallback&lt;void&gt;)|openAtomicService(appId: string, options?: AtomicServiceOptions)|
76|startAbilityAsCaller(want: Want, options: StartOptions, callback: AsyncCallback&lt;void&gt;)|startAbilityAsCaller(want: Want, options?: StartOptions)|startAbilityForResultAsCaller(want: Want, options?: StartOptions)|
77|openLink(link: string, options?: OpenLinkOptions, callback?: AsyncCallback&lt;AbilityResult&gt;)|startAbilityByCall(want: Want)|
78|startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncCallback&lt;AbilityResult&gt;)|startRecentAbility(want: Want, callback: AsyncCallback&lt;void&gt;)|
79|startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback&lt;void&gt;)|startRecentAbility(want: Want, options: StartOptions, callback: AsyncCallback&lt;void&gt;)|
80|startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartOptions)|startRecentAbility(want: Want, options?: StartOptions)|
81|startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback&lt;void&gt;)|startAbilityByCallWithAccount(want: Want, accountId: number)|
82|startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback&lt;void&gt;)|openLink(link:string, options?: OpenLinkOptions)|
83|startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions)|
84|startRecentAbility(want: Want, callback: AsyncCallback&lt;void&gt;)|
85|startRecentAbility(want: Want, options: StartOptions, callback: AsyncCallback&lt;void&gt;)|
86|startRecentAbility(want: Want, options?: StartOptions)|
87|startAbilityByCallWithAccount(want: Want, accountId: number)|
88|startAbilityAsCaller(want: Want, callback: AsyncCallback&lt;void&gt;)|
89
90**Adaptation Guide**
91
92Cancel the calls of the involved APIs on a lock screen. Otherwise, the started application will be closed.
93