From 548074e8b3717b9ff55edd04eebc9fef59d5b6f0 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 3 Oct 2018 23:49:05 +0200 Subject: run_key_action_for_mode(): Extract action code to a new method Move the key simulation and command execution code to a new method so that it can be reused in both top-level map and mode branches. This additionally enables command running from top-level maps (previously it only worked for in-mode maps). --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index c6f66d1..8dc8e93 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,6 +15,6 @@ extern crate xdg; mod cocoa_bridge; mod parser; -use parser::{Action, HeadphoneButton, MapGroup, MapKind}; +use parser::{Action, HeadphoneButton, MapAction, MapGroup, MapKind}; pub use cocoa_bridge::*; -- cgit v1.2.3