HID keyboard - how to send Windows GUI key

Hi guys. May I ask some questions for ble_app_hids_keyboard_pca10056_s113 project from 17.1.0 nRF5 SDK:

 How to implement Ctrl-C for HID keyboard 

Similar to this thread, I was able to send [Windows + key] hotkeys, like Windows + R = "RUN" box.

As explained in the INFO center https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_hids_keyboard.html

"The format used for keyboard reports is the following byte array:

[modifier, reserved, Key1, Key2, Key3, Key4, Key6, Key7]"

Sending "Windows + R" is byte array = [Modifier = 0x08, 0x00, Key1 = 0x15 (R), 0x00, 0x00, 0x00, 0x00, 0x00]

 Windows / GUI key picture

The problem is when I send Left GUI key 0xE3 or Right GUI key 0xE7, Windows doesn't respond.

EX: send [0x00, 0x00, Key1 = 0xE3 (Left GUI), 0x00, 0x00, 0x00, 0x00, 0x00] and send key release

May I ask your help how to send the Windows key using the nRF52 keyboard example? If the HID report map needs to change, let me know.

Thank you for your help!

Related