It can be confusing when the device name string includes something generic like 'keyboard', which can seem like just part of the logging. Quotes around the actual device name string when grabbing or ungrabbing the device will alleviate this.
Example using my keyboard device name:
(+K) Grabbing AT Translated Set 2 keyboard (/dev/input/event4)
(+K) Grabbing 'AT Translated Set 2 keyboard' (/dev/input/event4)
The device name is not 'AT Translated Set 2', which might be a natural assumption, but 'AT Translated Set 2 keyboard', which will be made clearer by adding the quotes.
It can be confusing when the device name string includes something generic like 'keyboard', which can seem like just part of the logging. Quotes around the actual device name string when grabbing or ungrabbing the device will alleviate this.
Example using my keyboard device name:
(+K) Grabbing AT Translated Set 2 keyboard (/dev/input/event4)
(+K) Grabbing 'AT Translated Set 2 keyboard' (/dev/input/event4)
The device name is not 'AT Translated Set 2', which might be a natural assumption, but 'AT Translated Set 2 keyboard', which will be made clearer by adding the quotes.
Changes
Checklist