golang-design / hotkey

⌨️ cross-platform hotkey package
https://golang.design/x/hotkey
MIT License
212 stars 10 forks source link

Space key? #13

Closed horacehylee closed 2 years ago

horacehylee commented 2 years ago

Thanks for the library, it works like a charm.

Just wanted to ask why Space key is not available with this package?

I could make a PR to add the space key here if wanted

changkun commented 2 years ago

Hi, I don't remember why space key was not there. Probably forgotten. I think adding a space key would be helpful. Hence PR welcome, make sure that the PR is sent for all platforms instead of a specific one.

Note that for any keys that are not there can always use the raw keycode and be converted to hotkey.Key. Similar to what was discussed here https://github.com/golang-design/hotkey/issues/2#issuecomment-877767223