sidorares / node-x11

X11 node.js network protocol client
MIT License
518 stars 72 forks source link

Add `XQueryKeymap` command #209

Open James-Livesey opened 9 months ago

James-Livesey commented 9 months ago

This PR follows up on https://github.com/sidorares/node-x11/issues/69#issuecomment-54241340 by adding a function call for the XQueryKeymap command.

This enables global tracking of key presses (independent of window focus) that makes implementing applications relating to keylogging possible, such as for the functionality seen with the screenkey application.

This command will be used in the gShell desktop environment to bind global shortcuts.