veeso/tui-realm

[Feature Request] - Implement Serializing and Deserialzing for keyevent?

tramhao opened this issue · 3 comments

Description

I need to save the key config so that I can change it in config.

Changes

Implement serializing and deserialing for keyevent.

  • ...

Implementation

Haven't thought of how to do it.

veeso commented

Merged into 1.4.0 version.

Please, add the serialize feature into your cargo.toml to tui-realm feature, in order to use Deserialize and Serialize traits.

thanks so much!

I'm getting lost here. Thanks for your implementation of serialize and deserialize. However, I'm facing two problems here:

  1. I cannot write it to toml. Probably it's lack of certain feature. Save is always failed due to wrong type.
  2. I cannot use any configuration value from config, in component implementation. Is there a better way to do it?

Thanks so much!