You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's several different formats for writing keybinds:
ctrl+c (+)
ctrl-c (-)
C-c (Emacs)
^c (macOS)
probably some others?
In my original design for this lib, I thought about supporting ser/deser for each of these formats, but decided against it because it's highly application-specific and I didn't need it. I'm curious what would be most useful for your application, and whether it's possible to just serialize a struct with modifiers and a key like I do here.
I think a nice addition would be to allow for parsing of keys via String so:
a
will return the a key,ctrl+c
will return the c key with CTRL modifier and so on.The text was updated successfully, but these errors were encountered: