aboutsummaryrefslogtreecommitdiff
path: root/common/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/action.c')
-rw-r--r--common/action.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/common/action.c b/common/action.c
index f6e50032e..6d5336752 100644
--- a/common/action.c
+++ b/common/action.c
@@ -816,18 +816,18 @@ bool is_tap_key(key_t key)
816 case ACT_LAYER: 816 case ACT_LAYER:
817 case ACT_LAYER_BIT: 817 case ACT_LAYER_BIT:
818 switch (action.layer.code) { 818 switch (action.layer.code) {
819 case 0x00: 819 case LAYER_MOMENTARY:
820 case 0xF1 ... 0xFF: 820 case LAYER_ON_PRESS:
821 case LAYER_ON_RELEASE:
822 case LAYER_DEFAULT:
821 return false; 823 return false;
822 case 0xF0: 824 case LAYER_TAP_TOGGLE:
823 default: 825 default: /* tap key */
824 return true; 826 return true;
825 } 827 }
826 return false; 828 return false;
827 case ACT_FUNCTION: 829 case ACT_FUNCTION:
828 if (action.func.opt & FUNC_TAP) { 830 if (action.func.opt & FUNC_TAP) { return true; }
829 return true;
830 }
831 return false; 831 return false;
832 } 832 }
833 return false; 833 return false;