aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-10-03 23:49:05 +0200
committerTeddy Wing2018-10-03 23:52:49 +0200
commit548074e8b3717b9ff55edd04eebc9fef59d5b6f0 (patch)
tree1edc0f533b1b9b630110d94e4df5a0f2b8548717 /src/lib.rs
parent9af4701e7364dac691ce8d2f2875a974091d5453 (diff)
downloaddome-key-map-548074e8b3717b9ff55edd04eebc9fef59d5b6f0.tar.bz2
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).
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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::*;