!Str prefix for interactive keys to pass a string
This is a proposal for implementing a !Str prefix for keys.
Currently, the default delay is not taken into account, but this would work:
- !Interactive
keys:
- !Str hello
- 2s
- ^X
- n
Thanks for the PR! I think it might be better to implement this by keeping the Key enum the same and instead change the deserialization for the keys field of Instruction::Interactive via #[serde(deserialize_with = "..."].
@DAmesberger is it ok if I close this and work on the alternative I described myself? Or are you still interested in working on this?
Sorry, I completely missed that comment. Sure, go ahead, it was just a quick fix and I am not that deep into that codebase, and time is scarce at the moment on my side, so currently I would not have time anyways.