deserialize string or default to none for config.ron
Cleanup config.ron
This commit is contained in:
parent
805db26ac1
commit
c60f7071bb
3 changed files with 72 additions and 78 deletions
|
|
@ -89,7 +89,7 @@ pub struct KeyPattern {
|
|||
#[serde(deserialize_with = "deserialize_KeyModifiers")]
|
||||
pub modifiers: KeyModifiers,
|
||||
/// The actual key, that was pressed
|
||||
#[serde(deserialize_with = "deserialize_Keysym")]
|
||||
#[serde(deserialize_with = "deserialize_Keysym", default)]
|
||||
pub key: Option<u32>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue