From 0c5e8ab544823fbb4936c536ee1d8a66298f7e51 Mon Sep 17 00:00:00 2001 From: Shav Kinderlehrer Date: Mon, 11 Mar 2024 09:21:46 -0400 Subject: Pass actions to components --- src/components/global_keys.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/global_keys.rs') 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()); } } } -- cgit v1.2.3