rust-windowing / xkeysym

X11 keyboard symbol utilities for Rust
Apache License 2.0
8 stars 4 forks source link

Match output of Keysym::name() with xdotools names #18

Open pentamassiv opened 1 year ago

pentamassiv commented 1 year ago

I am writing a library that uses xdotools to enter keys. In the documentation of the Keysym::name() fn it says:

Get a string corresponding to the name of this keyboard symbol.
The output of this function is **not stable** and is **intended for debugging purposes**.

Are there any thoughts to change this policy? It would be nice if I could use it. In order for the names to match, the "XK_" part would have to be removed.

notgull commented 11 months ago

If there is a way to make sure that the output is stable, like for xdotools, I would accept a PR to fix this.

pentamassiv commented 11 months ago

Okay, cool. I'll open a PR :-)