You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
applications: nrf_desktop: Update subscription priority in Fn keys
Change updates button_event subscription priority in the Fn keys module
to let the module process the event before other application modules.
Jira: NCSDK-34374
Signed-off-by: Marek Pieta <[email protected]>
Copy file name to clipboardExpand all lines: applications/nrf_desktop/doc/fn_keys.rst
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,8 @@ Module events
22
22
Configuration
23
23
*************
24
24
25
-
The module uses ``button_event`` sent by :ref:`caf_buttons`.
26
-
Make sure mentioned hardware interface is defined.
25
+
The module uses :c:struct:`button_event` sent by :ref:`caf_buttons`.
26
+
Make sure mentioned CAF module is enabled.
27
27
28
28
The module is enabled with :ref:`CONFIG_DESKTOP_FN_KEYS_ENABLE <config_desktop_app_options>` option.
29
29
@@ -38,6 +38,9 @@ You must configure the following options:
38
38
In the file :file:`fn_keys_def.h`, define all the dual-purpose keys.
39
39
The ``fn_keys`` array must be sorted by key ID (the module uses binary search).
40
40
41
+
By default, the module subscribes for :c:struct:`button_event` as the first subscriber (:c:macro:`APP_EVENT_SUBSCRIBE_FIRST`).
42
+
You can disable the :ref:`CONFIG_DESKTOP_FN_KEYS_BUTTON_EVENT_SUBSCRIBE_FIRST <config_desktop_app_options>` Kconfig option to use early subscription (:c:macro:`APP_EVENT_SUBSCRIBE_EARLY`).
Copy file name to clipboardExpand all lines: doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,6 +312,8 @@ nRF Desktop
312
312
* Improved HID subscription handling in the HID transports (:ref:`nrf_desktop_hids` and :ref:`nrf_desktop_usb_state`).
313
313
Both HID transports now unsubscribe from HID input reports related to the previously used HID protocol mode before subscribing to HID input reports related to the new HID protocol mode.
314
314
This change ensures that subscriptions to both HID boot and HID report protocol mode are not enabled at the same time.
315
+
* The :ref:`nrf_desktop_fn_keys` to subscribe for :c:struct:`button_event` as the first subscriber (:c:macro:`APP_EVENT_SUBSCRIBE_FIRST`) by default.
316
+
You can disable the :ref:`CONFIG_DESKTOP_FN_KEYS_BUTTON_EVENT_SUBSCRIBE_FIRST <config_desktop_app_options>` Kconfig option to use early subscription (:c:macro:`APP_EVENT_SUBSCRIBE_EARLY`).
0 commit comments