From 28f90e80aaa9dbc0ae3147e7523527d2437f2201 Mon Sep 17 00:00:00 2001 From: Jan Tache Date: Sun, 7 Aug 2022 18:45:44 -0700 Subject: [PATCH] feat(tap-hold): allow tap-hold nesting in hold action --- src/cfg.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cfg.rs b/src/cfg.rs index 3e6a3fe3b..5b1f2af86 100644 --- a/src/cfg.rs +++ b/src/cfg.rs @@ -874,9 +874,8 @@ fn parse_tap_hold( parse_timeout(&ac_params[1]).map_err(|e| anyhow!("invalid tap-timeout: {}", e))?; let tap_action = parse_action(&ac_params[2], parsed_state)?; let hold_action = parse_action(&ac_params[3], parsed_state)?; - if matches!(tap_action, Action::HoldTap { .. }) || matches!(hold_action, Action::HoldTap { .. }) - { - bail!("tap-hold is not allowed inside of tap-hold") + if matches!(tap_action, Action::HoldTap { .. }) { + bail!("tap-hold does not work in the tap-action of tap-hold") } Ok(sref(Action::HoldTap(sref(HoldTapAction { config,