joshgoebel / keyszer

a smart, flexible keymapper for X11 (a fork/reboot of xkeysnail )
Other
69 stars 15 forks source link

Quote device name string when grabbing/ungrabbing #160

Closed RedBearAK closed 1 year ago

RedBearAK commented 1 year ago

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