diff options
author | Shav Kinderlehrer <[email protected]> | 2024-03-11 09:21:46 -0400 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2024-03-11 09:21:46 -0400 |
commit | 0c5e8ab544823fbb4936c536ee1d8a66298f7e51 (patch) | |
tree | 438182a818577a80e01bba75ff19e2847bc3ec47 /src/components/global_keys.rs | |
parent | 832eb17a68e37f287206ec319a316ea91247808a (diff) | |
download | molehole-0c5e8ab544823fbb4936c536ee1d8a66298f7e51.tar.gz molehole-0c5e8ab544823fbb4936c536ee1d8a66298f7e51.zip |
Pass actions to components
Diffstat (limited to 'src/components/global_keys.rs')
-rw-r--r-- | src/components/global_keys.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/global_keys.rs b/src/components/global_keys.rs index 6537339..d0a5800 100644 --- a/src/components/global_keys.rs +++ b/src/components/global_keys.rs @@ -77,7 +77,7 @@ impl Component for GlobalKeys { for key_command in &mut self.key_commands { if key_command.key_code == key_event { - return Ok(key_command.action); + return Ok(key_command.action.clone()); } } } |