golang-design / hotkey

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

Feature Request: Translate String to HotKey #18

Closed HuakunShen closed 1 year ago

HuakunShen commented 1 year ago

I have a very simple feature request: implement a map or function to translate string to a hotkey.

This is very helpful when we use a custom hotkey configuration.

changkun commented 1 year ago

I think this feature has been discussed before, and we don't do it because the string-key mapping is not always bijective. See #14.

For a user of this package, one can always maintain the desired string to hotkey map themselves.

changkun commented 1 year ago

Based on the previous discussion, this is obsolete.