Closed tolik518 closed 4 months ago
Thanks for raising this too!
I've put in a fix by returning an vec from lib.rs and leaving it up to the client to handle displaying the actions. This gets generated as an array in wasm so we only need to .join(", ") for the keyboard version.
The
get_actions
-method currently imposes an issue, since actions which have a,
in the name won't get recognized as one action because,
is getting used to join/split the strings.https://github.com/hseager/you-are-merlin/blob/1582fa51bc162f477f71595b5b3610908320cb5f/src/lib.rs#L62-L76
A specific issue are items containing a
,
The code to read actions is over here:
https://github.com/hseager/you-are-merlin-www/blob/master/src/components/Controls.tsx#L28
So an easy fix would be to use another character which isn't used in texts, like the pipe-symbol
|
.