golang-design / hotkey

⌨️ cross-platform hotkey package

Home Page:https://golang.design/x/hotkey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Translate String to HotKey

HuakunShen opened this issue · comments

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.

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.

Based on the previous discussion, this is obsolete.