<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Send HID Keyboard key with modifier on Smart Remote 3, nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46124/send-hid-keyboard-key-with-modifier-on-smart-remote-3-nrf52832</link><description>Hi all, 
 
 How can I send a keayboard key with modifier? I would like to send a CTRL MAJ key for example. 
 I work on the smart remote 3 project. 
 
 Thanks in advance, 
 
 Sylvain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Apr 2019 07:22:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46124/send-hid-keyboard-key-with-modifier-on-smart-remote-3-nrf52832" /><item><title>RE: Send HID Keyboard key with modifier on Smart Remote 3, nrf52832</title><link>https://devzone.nordicsemi.com/thread/182512?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 07:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3d8883d-fb69-461c-a8c2-324fcc65990d</guid><dc:creator>sguitton01</dc:creator><description>&lt;p&gt;Hi Audun,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you, using the patch I was able to do exactly what I wanted.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sylvain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send HID Keyboard key with modifier on Smart Remote 3, nrf52832</title><link>https://devzone.nordicsemi.com/thread/182365?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 11:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7baacba-29e1-4794-b8f6-64ee787f4dea</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;Hi Sylvain,&lt;/p&gt;
&lt;p&gt;the HID Descriptor in the SR3 doesn&amp;#39;t include modifier keys currently, due to the lack of modifier keys on the smart remote hardware itself. To add support for Ctrl, Shift, etc. the HID Descriptor needs to be updated, and additionally the function that assembles the Keyboard HID Report needs to be modified (modifier keys are normally put in a bitmask rather than a list like the other keys).&lt;/p&gt;
&lt;p&gt;The attached patch file applies the mentioned modifications, with HID descriptor modifications taken from the nRF5 SDK HID Keyboard example. The &amp;#39;0&amp;#39; and &amp;#39;1&amp;#39; keys on the SR3 are used for testing purposes as Shift and Control keys. I tested it on windows 10, and it will hopefully work with your Host system also.&lt;/p&gt;
&lt;p&gt;Note that the HID Descriptor in this patch adds supports for all modifiers from usage id 0xE0 to 0xE7, but I only added parsing of LeftControl (0xE0) and LeftShift (0xE1) keys in this example. See page 59 of the HID Usage table document for list of all usage ids: &lt;a href="https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf"&gt;https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Audun&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0001_2D00_Add_2D00_modifiers_2D00_to_2D00_keyboard_2D00_report.patch"&gt;devzone.nordicsemi.com/.../0001_2D00_Add_2D00_modifiers_2D00_to_2D00_keyboard_2D00_report.patch&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>