Open cozyGalvinism opened 2 years ago
There's several different formats for writing keybinds:
ctrl+c
(+
)ctrl-c
(-
)C-c
(Emacs)^c
(macOS)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.