Closed romanr closed 1 month ago
Thanks, I'll take a look!
Sorry for the delay. I'll take a look at the end of the week!
In this case the problem is because of the split. "Space" gets converted to list of chars ["S", "p", "a", "c", "e"]. While you need to add spacing between modifiers and base key
In this case the problem is because of the split. "Space" gets converted to list of chars ["S", "p", "a", "c", "e"]. While you need to add spacing between modifiers and base key
There's list of all keys (in key-codes.json?)
We need to iterate on key sequence string, in this example we have "⇧⌘SPACE",
and iterating we will find first: shift ⇧
, and output it as singe div,
then we will find ⌘
and output it,
then "Space" is detected as single key because it is present in key-codes, so we output SPACE
as single DIV representing one key.
@romanr please see my last commit attached. I wrapped each keyboard token in span and added check if it's a symbol or not
@romanr please see my last commit attached. I wrapped each keyboard token in span and added check if it's a symbol or not
Thanks, will check!
I'll close this issue as stale. Please reopen it if you want to continue working on it.
I can't fix this myself;
Can't understand where it should be split so tokens like
Space
treated like single key. In the end it should look like this:⇧⌘SPACE