diff options
author | tmk <nobody@nowhere> | 2013-02-11 00:02:11 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-02-11 00:02:11 +0900 |
commit | eea85c7e24c4ff61bff0a6db8246a19896b5b630 (patch) | |
tree | a11ce2bb5d9fdea9852a5323ce7cdf10a78e409c /common/action.c | |
parent | 0be309ccc6acae61616f89bcc43df5e02c4df92a (diff) |
Fix is_tap_key()
Diffstat (limited to 'common/action.c')
-rw-r--r-- | common/action.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/action.c b/common/action.c index f6e50032eb..6d5336752e 100644 --- a/common/action.c +++ b/common/action.c @@ -816,18 +816,18 @@ bool is_tap_key(key_t key) case ACT_LAYER: case ACT_LAYER_BIT: switch (action.layer.code) { - case 0x00: - case 0xF1 ... 0xFF: + case LAYER_MOMENTARY: + case LAYER_ON_PRESS: + case LAYER_ON_RELEASE: + case LAYER_DEFAULT: return false; - case 0xF0: - default: + case LAYER_TAP_TOGGLE: + default: /* tap key */ return true; } return false; case ACT_FUNCTION: - if (action.func.opt & FUNC_TAP) { - return true; - } + if (action.func.opt & FUNC_TAP) { return true; } return false; } return false; |