TimUntersberger / nog

A tiling window manager for Windows
MIT License
697 stars 20 forks source link

Document (how to discover) which key names are valid arguments to nog.bind() #260

Closed garymm closed 3 years ago

garymm commented 3 years ago

Thanks for this tool!

Version (which release did you use?)

02bfe58

Describe the bug

I have no clue how to discover the valid arguments for nog.bind or nog.bind_map. Specifically I'm a new user and I'm trying to write a config.ns and I'm not sure how to bind something to the semicolon key. I tried typing in ";", but that seems to just crash nog (which may be a separate bug?).

garymm commented 3 years ago

After poking around it seems like the answer is "the string form of the values of the Key enum"

And to figure out the virtual key codes for a given keyboard, I was able to use KeyboardStateView.

If maintainers can confirm this is correct, I can add this information to the documentation. Would it go in bind.md?

TimUntersberger commented 3 years ago

This should be fixed once #259 is merged. Closing for now.